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:
YuSanka 2018-08-15 12:47:46 +02:00
parent 3e549c153d
commit 76249e5625
2 changed files with 9 additions and 14 deletions

View file

@ -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);
};