mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Fixed typo in LambdaObjectDialog. It was a reason of the wrong cube size updating for generic modifier "Cube".
+ some code cleaning
This commit is contained in:
parent
3e549c153d
commit
76249e5625
2 changed files with 9 additions and 14 deletions
|
@ -30,9 +30,9 @@ LambdaObjectDialog::LambdaObjectDialog(wxWindow* parent)
|
|||
|
||||
auto optgroup = init_modificator_options_page(_(L("Box")));
|
||||
optgroup->m_on_change = [this](t_config_option_key opt_key, boost::any value){
|
||||
int opt_id = opt_key == "L" ? 0 :
|
||||
opt_key == "W" ? 1 :
|
||||
opt_key == "L" ? 2 : -1;
|
||||
int opt_id = opt_key == "l" ? 0 :
|
||||
opt_key == "w" ? 1 :
|
||||
opt_key == "h" ? 2 : -1;
|
||||
if (opt_id < 0) return;
|
||||
object_parameters.dim[opt_id] = boost::any_cast<double>(value);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue