From bacdc6ae91caa524ddec0060a6f9dbc7044946e6 Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov Date: Tue, 30 Jan 2024 08:59:44 -0500 Subject: [PATCH] Maintain editor properties vector ratio when set to 0 --- editor/editor_properties_vector.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor/editor_properties_vector.cpp b/editor/editor_properties_vector.cpp index 82cd7035084..453675bebeb 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; } } }