From 5f74827e7f727522683eb916f16e8bcf79d9cbe8 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 9 Oct 2019 11:32:08 +0300 Subject: [PATCH] Fix bug with selection of sub-shapes --- src/ModuleBase/ModuleBase_WidgetValidated.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.cpp b/src/ModuleBase/ModuleBase_WidgetValidated.cpp index a11c8c201..bd9cdbd76 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.cpp +++ b/src/ModuleBase/ModuleBase_WidgetValidated.cpp @@ -107,7 +107,7 @@ bool ModuleBase_WidgetValidated::isValidInFilters(const ModuleBase_ViewerPrsPtr& // if an owner is null, the selection happens in the Object browser. // creates a selection owner on the base of object shape and the object AIS object - if ((aOwnersList.Size() > 0) && thePrs->object().get()) { + if ((aOwnersList.Size() == 0) && thePrs->object().get()) { ResultPtr aResult = myWorkshop->selection()->getResult(thePrs); GeomShapePtr aShape = aResult.get() ? aResult->shape() : GeomShapePtr(); // some results have no shape, e.g. the parameter one. So, they should not be validated -- 2.39.2