[PD] improve selection mode exit for Helix

exit the selection mode if selection was got - like we do it for all other PD features
This commit is contained in:
Uwe
2021-12-07 04:18:33 +01:00
parent 6efd5f1bf6
commit 1e4c7a2de9

View File

@@ -363,10 +363,10 @@ void TaskHelixParameters::updateUI()
void TaskHelixParameters::onSelectionChanged(const Gui::SelectionChanges& msg)
{
if (msg.Type == Gui::SelectionChanges::AddSelection) {
exitSelectionMode();
std::vector<std::string> axis;
App::DocumentObject* selObj;
if (getReferencedSelection(vp->getObject(), msg, selObj, axis) && selObj) {
exitSelectionMode();
propReferenceAxis->setValue(selObj, axis);
recomputeFeature();
updateUI();
@@ -374,7 +374,6 @@ void TaskHelixParameters::onSelectionChanged(const Gui::SelectionChanges& msg)
}
}
void TaskHelixParameters::onPitchChanged(double len)
{
propPitch->setValue(len);