From: vsv Date: Thu, 25 Apr 2019 13:40:48 +0000 (+0300) Subject: Issue #2908: Update presentation on call setColor in Python X-Git-Tag: VEDF2019Lot4~101^2~95 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c9d74b519d72418a9d53123d6cb2c0a3e90ddeb0;p=modules%2Fshaper.git Issue #2908: Update presentation on call setColor in Python --- diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index 3df01a82e..01315a892 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -410,8 +410,8 @@ void Model_Data::sendAttributeUpdated(ModelAPI_Attribute* theAttr) myWasChangedButBlocked.push_back(theAttr); } } else { - // trim: need to redisplay - if (myObject && theAttr->attributeType() == "Point2D") { + // trim: need to redisplay or set color in the python script + if (myObject && (theAttr->attributeType() == "Point2D" || theAttr->id() == "Color")) { static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY); ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent); }