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:
commit
d8c98d713a
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue