Skip to content

Commit

Permalink
Maintain editor properties vector ratio when set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryevdokimov committed Jan 30, 2024
1 parent 51991e2 commit bacdc6a
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 bacdc6a

Please sign in to comment.