PD ui: Fix Primitive combobuttons icons remember last choice
This commit is contained in:
@@ -63,6 +63,9 @@ void CmdPrimtiveCompAdditive::activated(int iMsg)
|
||||
PartDesign::Body *pcActiveBody = PartDesignGui::getBody(/*messageIfNot = */true);
|
||||
if (!pcActiveBody) return;
|
||||
|
||||
Gui::ActionGroup* pcAction = qobject_cast<Gui::ActionGroup*>(_pcAction);
|
||||
pcAction->setIcon(pcAction->actions().at(iMsg)->icon());
|
||||
|
||||
std::string FeatName;
|
||||
std::string CSName = getUniqueObjectName("CoordinateSystem");;
|
||||
if(iMsg == 0) {
|
||||
@@ -249,6 +252,9 @@ void CmdPrimtiveCompSubtractive::activated(int iMsg)
|
||||
PartDesign::Body *pcActiveBody = PartDesignGui::getBody(/*messageIfNot = */true);
|
||||
if (!pcActiveBody) return;
|
||||
|
||||
Gui::ActionGroup* pcAction = qobject_cast<Gui::ActionGroup*>(_pcAction);
|
||||
pcAction->setIcon(pcAction->actions().at(iMsg)->icon());
|
||||
|
||||
//check if we already have a feature as subtractive ones work only if we have
|
||||
//something to subtract from.
|
||||
App::DocumentObject *prevSolid = pcActiveBody->Tip.getValue();
|
||||
|
||||
Reference in New Issue
Block a user