Maintain editor properties vector ratio when set to 0

This commit is contained in:
Robert Yevdokimov 2024-01-30 08:59:44 -05:00
parent 51991e2014
commit bacdc6ae91

View file

@ -105,8 +105,6 @@ void EditorPropertyVectorN::_update_ratio() {
if (spin_sliders[base_slider_idx]->get_value() != 0) {
ratio_write[i] = spin_sliders[secondary_slider_idx]->get_value() / spin_sliders[base_slider_idx]->get_value();
} else {
ratio_write[i] = 0;
}
}
}