From 494cd17054469fea96bf4abb8faf79b7f4d613e3 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 5 Dec 2014 19:34:36 +0300 Subject: [PATCH] Provide activation of sketch label on edit of sketch --- src/PartSet/PartSet_Module.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index f4c782654..bb9d5f7f3 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -251,6 +251,13 @@ void PartSet_Module::onPlaneSelected(const std::shared_ptr& thePln) void PartSet_Module::propertyPanelDefined(ModuleBase_Operation* theOperation) { ModuleBase_IPropertyPanel* aPanel = theOperation->propertyPanel(); + if ((theOperation->id().toStdString() == SketchPlugin_Sketch::ID()) && + (theOperation->isEditOperation())) { + // we have to manually activate the sketch label in edit mode + aPanel->activateWidget(aPanel->modelWidgets().first()); + return; + } + // Restart last operation type if ((theOperation->id() == myLastOperationId) && myLastFeature) { ModuleBase_ModelWidget* aWgt = aPanel->activeWidget(); -- 2.39.2