Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / PartSet / PartSet_Listener.cpp
index 580186b567b1d3cde612fe1802bb91aa9da2b11a..a9c1eb2cb68dbe3e401a5fe2a5e04c845200de14 100644 (file)
@@ -32,6 +32,8 @@ void PartSet_Listener::processEvent(const Events_Message* theMessage)
 {
   if (QString(theMessage->eventID().eventText()) == EVENT_FEATURE_UPDATED)
   {
-    myModule->visualizePreview(true);
+    const Model_FeatureUpdatedMessage* aUpdMsg = dynamic_cast<const Model_FeatureUpdatedMessage*>(theMessage);
+    boost::shared_ptr<ModelAPI_Feature> aFeature = aUpdMsg->feature();
+    myModule->visualizePreview(aFeature, true);
   }
 }