miscellaneous fixes
This commit is contained in:
parent
f954a51430
commit
cda9b57b6c
|
@ -186,6 +186,7 @@ void CmdPartDesignMoveTip::activated(int iMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
App::DocumentObject* oldTip = pcActiveBody->Tip.getValue();
|
App::DocumentObject* oldTip = pcActiveBody->Tip.getValue();
|
||||||
|
if (!oldTip->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId()))
|
||||||
doCommand(Gui,"Gui.activeDocument().hide(\"%s\")", oldTip->getNameInDocument());
|
doCommand(Gui,"Gui.activeDocument().hide(\"%s\")", oldTip->getNameInDocument());
|
||||||
App::DocumentObject* prevSolidFeature = pcActiveBody->getPrevSolidFeature();
|
App::DocumentObject* prevSolidFeature = pcActiveBody->getPrevSolidFeature();
|
||||||
if (prevSolidFeature != NULL)
|
if (prevSolidFeature != NULL)
|
||||||
|
|
|
@ -58,7 +58,10 @@ bool ViewProvider::doubleClicked(void)
|
||||||
// Drop into insert mode so that the user doesn't see all the geometry that comes later in the tree
|
// Drop into insert mode so that the user doesn't see all the geometry that comes later in the tree
|
||||||
// Also, this way the user won't be tempted to use future geometry as external references for the sketch
|
// Also, this way the user won't be tempted to use future geometry as external references for the sketch
|
||||||
oldTip = ActivePartObject->Tip.getValue();
|
oldTip = ActivePartObject->Tip.getValue();
|
||||||
|
if (oldTip != this->pcObject)
|
||||||
Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')");
|
Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')");
|
||||||
|
else
|
||||||
|
oldTip = NULL;
|
||||||
} else {
|
} else {
|
||||||
oldTip = NULL;
|
oldTip = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -265,7 +265,10 @@ bool ViewProviderDatum::doubleClicked(void)
|
||||||
// Drop into insert mode so that the user doesn't see all the geometry that comes later in the tree
|
// Drop into insert mode so that the user doesn't see all the geometry that comes later in the tree
|
||||||
// Also, this way the user won't be tempted to use future geometry as external references for the sketch
|
// Also, this way the user won't be tempted to use future geometry as external references for the sketch
|
||||||
oldTip = ActivePartObject->Tip.getValue();
|
oldTip = ActivePartObject->Tip.getValue();
|
||||||
|
if (oldTip != this->pcObject)
|
||||||
Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')");
|
Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')");
|
||||||
|
else
|
||||||
|
oldTip = NULL;
|
||||||
} else {
|
} else {
|
||||||
oldTip = NULL;
|
oldTip = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user