From a9105aa127818a29826cd4c2a11d815ae2894838 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 26 Jul 2019 18:13:43 +0300 Subject: [PATCH] Issue #2956: Clear temporarily defined value of an attribute --- src/ModuleBase/ModuleBase_WidgetValidated.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.cpp b/src/ModuleBase/ModuleBase_WidgetValidated.cpp index 937464e3c..7740f17f5 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.cpp +++ b/src/ModuleBase/ModuleBase_WidgetValidated.cpp @@ -197,6 +197,11 @@ bool ModuleBase_WidgetValidated::isValidInFilters(const ModuleBase_ViewerPrsPtr& anOwner.Nullify(); myPresentedObject = ObjectPtr(); } + if (!aValid) { + // Clear attribute if it still has selection + AttributePtr anAttr = attribute(); + anAttr->reset(); + } return aValid; } -- 2.39.2