[PD] Fix wrong mode options when opening existing revolution
Only the "Dimension" options showed regardless of what mode was selected.
This commit is contained in:
committed by
Adrián Insaurralde Avalos
parent
c34bc88d66
commit
48a1db8a76
@@ -86,7 +86,7 @@ TaskRevolutionParameters::TaskRevolutionParameters(PartDesignGui::ViewProvider*
|
||||
setupDialog();
|
||||
|
||||
blockUpdate = false;
|
||||
updateUI();
|
||||
updateUI(ui->changeMode->currentIndex());
|
||||
connectSignals();
|
||||
|
||||
setFocus();
|
||||
@@ -351,7 +351,6 @@ void TaskRevolutionParameters::onSelectionChanged(const Gui::SelectionChanges& m
|
||||
propReferenceAxis->setValue(selObj, axis);
|
||||
|
||||
recomputeFeature();
|
||||
updateUI();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -546,7 +545,7 @@ void TaskRevolutionParameters::onModeChanged(int index)
|
||||
break;
|
||||
case PartDesign::Revolution::RevolMethod::ToLast:
|
||||
if (!isGroove)
|
||||
pcType->setValue("UpToLast");
|
||||
pcType->setValue("UpToLast");
|
||||
else
|
||||
pcType->setValue("ThroughAll");
|
||||
break;
|
||||
|
||||
@@ -92,7 +92,7 @@ protected:
|
||||
|
||||
private:
|
||||
void connectSignals();
|
||||
void updateUI(int index=0); // TODO: Implement for index and remove default
|
||||
void updateUI(int index);
|
||||
void translateModeList(int index);
|
||||
// TODO: This is common with extrude. Maybe send to superclass.
|
||||
void translateFaceName();
|
||||
|
||||
Reference in New Issue
Block a user