Maintain editor properties vector ratio when set to 0
This commit is contained in:
1 parent
51991e2014
commit
bacdc6ae91
1 file changed
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user