]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
refs #30 - Sketch base GUI: create, draw lines
authornds <natalia.donis@opencascade.com>
Mon, 19 May 2014 14:28:06 +0000 (18:28 +0400)
committernds <natalia.donis@opencascade.com>
Mon, 19 May 2014 14:28:06 +0000 (18:28 +0400)
Separation of AIS objects activation in the local selection from the feature display/redisplay

src/PartSet/PartSet_Module.cpp

index 24d9044fae631352226bde41dbbebe6ba8097821..8f2ef6e4fcd893ac39722dc243fcde3f8775232f 100644 (file)
@@ -208,7 +208,8 @@ void PartSet_Module::onFeatureConstructed(boost::shared_ptr<ModelAPI_Feature> th
   bool isDisplay = theMode != PartSet_OperationSketchBase::FM_Abort;
   visualizePreview(theFeature, isDisplay, false);
 
-  if (theMode == FM_Activation || theMode == FM_Deactivation)
+  if (theMode == PartSet_OperationSketchBase::FM_Activation ||
+      theMode == PartSet_OperationSketchBase::FM_Deactivation)
     activateFeature(theFeature, true);
 }