]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1470: Do not edit external sketch objects
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 4 May 2016 13:00:07 +0000 (16:00 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 4 May 2016 13:00:07 +0000 (16:00 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 6b54a5ecd7b8797c4765e884aead3409f563b86b..c897b72b5e1a240e992b5ed9f51aa2546291d8a0 100755 (executable)
@@ -696,7 +696,7 @@ void PartSet_SketcherMgr::launchEditing()
     FeaturePtr aFeature = myCurrentSelection.begin().key();
     std::shared_ptr<SketchPlugin_Feature> aSPFeature = 
               std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
-    if (aSPFeature) {
+    if (aSPFeature && (!aSPFeature->isExternal())) {
       myModule->editFeature(aSPFeature);
     }
   }