Browse Source

Hide slider for array size selector in editor

Use `editing_integer` so that editor has step buttons
Malcolm Anderson 6 months ago
parent
commit
bbfbde99e9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/editor_properties_array_dict.cpp

+ 1 - 0
editor/editor_properties_array_dict.cpp

@@ -447,6 +447,7 @@ void EditorPropertyArray::update_property() {
 			size_slider = memnew(EditorSpinSlider);
 			size_slider->set_step(1);
 			size_slider->set_max(INT32_MAX);
+			size_slider->set_editing_integer(true);
 			size_slider->set_h_size_flags(SIZE_EXPAND_FILL);
 			size_slider->set_read_only(is_read_only());
 			size_slider->connect(SceneStringName(value_changed), callable_mp(this, &EditorPropertyArray::_length_changed));