From 518ecc0ebe7f25f15bf1f95641ea9ee94e68a0e5 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 25 Apr 2019 16:40:48 +0300 Subject: [PATCH] Issue #2908: Update presentation on call setColor in Python --- src/Model/Model_Data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index 6c2f34378..252aac89c 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -335,8 +335,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); } -- 2.39.2