]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
The preview presentation should be updated by the operation values changed.
authornds <nds@opencascade.com>
Fri, 28 Aug 2015 15:45:40 +0000 (18:45 +0300)
committernds <nds@opencascade.com>
Fri, 28 Aug 2015 15:45:40 +0000 (18:45 +0300)
If the operation, e.g. Group/Export has no preview for  the feature, or feature is hidden, the customize does not happen, and the obsolete operation prs stayed in the viewer.

src/PartSet/PartSet_CustomPrs.cpp
src/XGUI/XGUI_Displayer.cpp
src/XGUI/XGUI_WorkshopListener.cpp

index 5cd38b33b91be11bba776bda02e9dbd075d009b2..d3cdd50205118b9f20b5a37bdcc9fea45c6855a1 100755 (executable)
@@ -71,8 +71,10 @@ void PartSet_CustomPrs::displayPresentation()
     aWorkshop->displayer()->displayAIS(myOperationPrs, false/*load object in selection*/, true);
     aContext->SetZLayer(anOperationPrs, aModule->getVisualLayerId());
   }
-  else
+  else {
     anOperationPrs->Redisplay();
+    workshop()->displayer()->updateViewer();
+  }
 }
 
 void PartSet_CustomPrs::erasePresentation()
index ff4127e2f2c1cae1504cf837b3960f531759c1ac..ecbc29b4e69968971d7a2caa2548cc032890f00e 100644 (file)
@@ -954,7 +954,6 @@ bool XGUI_Displayer::customizeObject(ObjectPtr theObject)
   }
   bool isCustomized = aCustomPrs.get() &&
                       aCustomPrs->customisePresentation(aResult, anAISObj, myCustomPrs);
-  myWorkshop->module()->customizeObject(theObject);
   return isCustomized;
 }
 
index fcc927c3edcc1d758fc18309c4a96de9a29d3993..ae49a9141bb8048be152efcecfb8038086bbd83f 100755 (executable)
@@ -220,9 +220,11 @@ void XGUI_WorkshopListener::onFeatureUpdatedMsg(
           break;
         }
       }
+        myWorkshop->module()->customizeObject(aCurrentFeature);
     }
   }
   anOperationMgr->onValidateOperation();
+
   //if (myObjectBrowser)
   //  myObjectBrowser->processEvent(theMsg);
 }