]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #90: Show constraints on sketcher edit
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 30 Jul 2014 08:25:49 +0000 (12:25 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 30 Jul 2014 08:25:49 +0000 (12:25 +0400)
src/PartSet/PartSet_Module.cpp

index 664346205879900d16ea51ed29fe2543222b45ed..b28152c011924f6074ae5086818dfbda93dd8c6c 100644 (file)
@@ -369,6 +369,8 @@ void PartSet_Module::onFeatureConstructed(ObjectPtr theFeature, int theMode)
         else
           aDisplayer->erase((*aIt), false);
       }
+      if (!isDisplay)
+        aDisplayer->erase((*aSFIt), false);
     }
   }
   if (isDisplay)
@@ -562,6 +564,7 @@ void PartSet_Module::updateCurrentPreview(const std::string& theCmdId)
       aDisplayer->activateInLocalContext((*aRIt), aModes, false);
     }
     aDisplayer->display(aSPFeature, false);
+    aDisplayer->activateInLocalContext(aSPFeature, aModes, false);
   }
   aDisplayer->updateViewer();
 }