Model_AttributeBoolean::Model_AttributeBoolean(TDF_Label& theLabel)
{
myLab = theLabel;
+ reinit();
+}
+
+void Model_AttributeBoolean::reinit()
+{
// check the attribute could be already presented in this doc (after load document)
- myIsInitialized = theLabel.FindAttribute(TDataStd_Integer::GetID(), myBool) == Standard_True;
+ myIsInitialized = myLab.FindAttribute(TDataStd_Integer::GetID(), myBool) == Standard_True;
}