X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_ResultBody.cpp;h=216aab493f212dc73adad31d62856091a34a980f;hb=fe8cab988ae59927f68da8e184cce6767e052206;hp=714d984e8e49e631abd123e79fa6304c49354d61;hpb=a8cfbfb436c27ff96edd5c808e9a452c35cef207;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index 714d984e8..216aab493 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include @@ -22,13 +22,6 @@ Model_ResultBody::Model_ResultBody() myConnect = ConnectionNotComputed; } -void Model_ResultBody::initAttributes() -{ - // append the color attribute. It is empty, the attribute will be filled by a request - DataPtr aData = data(); - aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::typeId()); -} - void Model_ResultBody::colorConfigInfo(std::string& theSection, std::string& theName, std::string& theDefault) { @@ -71,7 +64,7 @@ bool Model_ResultBody::isConcealed() if (aResult) { // hidden unit must be redisplayed (hidden) ModelAPI_EventCreator::get()->sendDeleted(document(), this->groupName()); // redisplay for the viewer (it must be disappeared also) - static Events_ID EVENT_DISP = + static Events_ID EVENT_DISP = Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY); ModelAPI_EventCreator::get()->sendUpdated(data()->owner(), EVENT_DISP); } else { // was not concealed become concealed => delete event