From 0a381ba8c7daab294183aa42a4516666524c6ae2 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 26 Mar 2015 07:49:22 +0300 Subject: [PATCH] Union of validator and filter functionalities. External edge is visualized until another edge is selected of the filtered value is not valid After merge from master, where a visualization bug is fixed, the edge should be erased from the viewer always in restoreAttributeValue. --- src/PartSet/PartSet_WidgetShapeSelector.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_WidgetShapeSelector.cpp b/src/PartSet/PartSet_WidgetShapeSelector.cpp index 5c68a1015..6dd500d4a 100644 --- a/src/PartSet/PartSet_WidgetShapeSelector.cpp +++ b/src/PartSet/PartSet_WidgetShapeSelector.cpp @@ -91,8 +91,10 @@ void PartSet_WidgetShapeSelector::storeAttributeValue() void PartSet_WidgetShapeSelector::restoreAttributeValue(const bool theValid) { ModuleBase_WidgetShapeSelector::restoreAttributeValue(theValid); - //if (!theValid) - removeExternal(); + /// this is a temporary code, will be removed when master is merged to this branch + /// after merge, the external edge should be removed always, without flag checking + if (!theValid) + removeExternal(); /* XGUI_ModuleConnector* aConnector = dynamic_cast(myWorkshop); XGUI_Workshop* aWorkshop = aConnector->workshop(); -- 2.30.2