X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeDoubleArray.cpp;h=fd1e4dfdc3455982f9e49ba7e67fdd4ab5af5a7f;hb=2f70266a7065a81d239198cf4ca0f507e46b96ff;hp=3a6b2ad9f9f27a53e8175afe9fb4e81e7a327b86;hpb=02fc4b8cac85322c7bb8c5a00f7fafa3665a0fc6;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeDoubleArray.cpp b/src/Model/Model_AttributeDoubleArray.cpp index 3a6b2ad9f..fd1e4dfdc 100644 --- a/src/Model/Model_AttributeDoubleArray.cpp +++ b/src/Model/Model_AttributeDoubleArray.cpp @@ -71,6 +71,11 @@ double Model_AttributeDoubleArray::value(const int theIndex) Model_AttributeDoubleArray::Model_AttributeDoubleArray(TDF_Label& theLabel) { myLab = theLabel; + reinit(); +} + +void Model_AttributeDoubleArray::reinit() +{ // check the attribute could be already presented in this doc (after load document) myIsInitialized = myLab.FindAttribute(TDataStd_RealArray::GetID(), myArray) == Standard_True;