]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issues #2027: trim on cirlce(arc will be created). Result of selected will clear...
authornds <nds@opencascade.com>
Mon, 3 Apr 2017 07:45:52 +0000 (10:45 +0300)
committernds <nds@opencascade.com>
Mon, 3 Apr 2017 07:45:52 +0000 (10:45 +0300)
src/PartSet/PartSet_SketcherReentrantMgr.cpp

index 82f1b3b61da588dc5a6a247c4491fded8e86ce1e..b355a8869e1bb8be90d1ee1b49b804fdfd1c5639 100644 (file)
@@ -286,7 +286,10 @@ void PartSet_SketcherReentrantMgr::setReentrantPreSelection(
   if (!aReentrantMessage.get())
     return;
 
-  aReentrantMessage->setSelectedObject(mySelectedObject);
+  // if feature has already filled the selected object, we should not overwrite it
+  if (!aReentrantMessage->selectedObject().get())
+    aReentrantMessage->setSelectedObject(mySelectedObject);
+
   aReentrantMessage->setSelectedAttribute(mySelectedAttribute);
   aReentrantMessage->setClickedPoint(myClickedSketchPoint);
 }