Salome HOME
Issue #1037 Time performance on a big model: do not perform validating for objects...
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSelector.cpp
index b9fe6ef9c9db8f643c71abfe33d7cce5514e4e31..9b044c6024540878c34326422de20258c9d1f1d8 100755 (executable)
@@ -176,7 +176,8 @@ bool ModuleBase_WidgetSelector::setSelectionCustom(const ModuleBase_ViewerPrsPtr
   GeomShapePtr aShape;
   getGeomSelection(thePrs, anObject, aShape);
 
-  ModuleBase_Tools::setObject(attribute(), anObject, aShape, myWorkshop, myIsInValidate);
+  // the last flag is to be depending on hasObject is called before. To be corrected later
+  ModuleBase_Tools::setObject(attribute(), anObject, aShape, myWorkshop, myIsInValidate, true);
   return true;
 }