From 77cc31f9ed02386ab3201ff22def4ff6da9bdd08 Mon Sep 17 00:00:00 2001 From: vsv Date: Sat, 26 Dec 2015 18:58:07 +0300 Subject: [PATCH] Update viewer on close just started sketcher --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 846ea9999..a9496370b 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -338,10 +338,13 @@ void PartSet_WidgetSketchLabel::activateCustom() void PartSet_WidgetSketchLabel::deactivate() { ModuleBase_ModelWidget::deactivate(); + bool aHidePreview = myPreviewDisplayed; erasePreviewPlanes(); activateSelection(false); activateFilters(false); + if (aHidePreview) + myWorkshop->viewer()->update(); } void PartSet_WidgetSketchLabel::activateSelection(bool toActivate) -- 2.39.2