summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties_vector.cpp
diff options
context:
space:
mode:
authorRobert Yevdokimov <robert.yevdokimov@autStand.com>2024-01-30 08:59:44 -0500
committerRobert Yevdokimov <robert.yevdokimov@autStand.com>2024-01-30 08:59:44 -0500
commitbacdc6ae91caa524ddec0060a6f9dbc7044946e6 (patch)
treee76057d88fd6afc46d75308f2fbde4950c38023f /editor/editor_properties_vector.cpp
parent51991e20143a39e9ef0107163eaf283ca0a761ea (diff)
downloadredot-engine-bacdc6ae91caa524ddec0060a6f9dbc7044946e6.tar.gz
Maintain editor properties vector ratio when set to 0
Diffstat (limited to 'editor/editor_properties_vector.cpp')
-rw-r--r--editor/editor_properties_vector.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/editor/editor_properties_vector.cpp b/editor/editor_properties_vector.cpp
index 82cd703508..453675bebe 100644
--- a/editor/editor_properties_vector.cpp
+++ b/editor/editor_properties_vector.cpp
@@ -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;
}
}
}