Skip to content

Commit

Permalink
Merge pull request #87740 from ryevdokimov/maintain-ratio-at-zero
Browse files Browse the repository at this point in the history
Fix editor properties vector ratio breaking when an element is set to zero
  • Loading branch information
akien-mga committed Feb 19, 2024
2 parents 8f9147f + bacdc6a commit d8c98d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions editor/editor_properties_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit d8c98d7

Please sign in to comment.