]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3123: Do not select non sketcher objects
authorvsv <vsv@opencascade.com>
Tue, 17 Dec 2019 14:19:42 +0000 (17:19 +0300)
committervsv <vsv@opencascade.com>
Tue, 17 Dec 2019 14:19:42 +0000 (17:19 +0300)
src/PartSet/PartSet_WidgetFeaturePointSelector.cpp

index 173e146271b82ad4b76398464f417f558ea438de..c5a4dec3b83dc19eb63f36a9264749248dec0811 100644 (file)
@@ -194,6 +194,10 @@ void PartSet_WidgetFeaturePointSelector::mouseReleased(ModuleBase_IViewWindow* t
   if (!aPreviewObject.get())
     return;
 
+  // Do not use non-sketcher objects
+  if (!sketch()->isSub(myPreviewObject))
+    return;
+
   // set parameters of preview into parameters of selection in the feature
   std::shared_ptr<GeomDataAPI_Point2D> aPointSelectedAttr =
                           std::dynamic_pointer_cast<GeomDataAPI_Point2D>(