Salome HOME
Issue #2059 point in sketch is created not on selected line of external sketchPlane...
[modules/shaper.git] / src / Model / Model_AttributeIntArray.cpp
index c01107332b47d371c7d6f7678bafd0c2aa7ca4a6..15e84ece98aadfd62ea0d9ceafc44db141318904 100644 (file)
@@ -71,7 +71,12 @@ int Model_AttributeIntArray::value(const int theIndex)
 Model_AttributeIntArray::Model_AttributeIntArray(TDF_Label& theLabel)
 {
   myLab = theLabel;
+  reinit();
+}
+
+void Model_AttributeIntArray::reinit()
+{
   // check the attribute could be already presented in this doc (after load document)
-  myIsInitialized = 
+  myIsInitialized =
     myLab.FindAttribute(TDataStd_IntegerArray::GetID(), myArray) == Standard_True;
 }