From: vsv Date: Tue, 17 Dec 2019 14:19:42 +0000 (+0300) Subject: Issue #3123: Do not select non sketcher objects X-Git-Tag: V9_5_0a1~85 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0dd6ea24d211b41787af43252ed78dbb601fb372;p=modules%2Fshaper.git Issue #3123: Do not select non sketcher objects --- diff --git a/src/PartSet/PartSet_WidgetFeaturePointSelector.cpp b/src/PartSet/PartSet_WidgetFeaturePointSelector.cpp index 173e14627..c5a4dec3b 100644 --- a/src/PartSet/PartSet_WidgetFeaturePointSelector.cpp +++ b/src/PartSet/PartSet_WidgetFeaturePointSelector.cpp @@ -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 aPointSelectedAttr = std::dynamic_pointer_cast(