Merge pull request #87740 from ryevdokimov/maintain-ratio-at-zero

Fix editor properties vector ratio breaking when an element is set to zero
This commit is contained in:
Rémi Verschelde 2024-02-19 10:43:36 +01:00
commit d8c98d713a
No known key found for this signature in database
GPG key ID: C3336907360768E1

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