summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorJackson Thomas Browne <jbrowne2@ucsc.edu>2023-05-19 13:23:21 -0700
committerJackson Thomas Browne <jbrowne2@ucsc.edu>2023-05-19 14:34:22 -0700
commit4fb7aac651b64b469d64a7fbb5c0058031fe63aa (patch)
tree1d0e1347ba6a92b01da043889c410da7e3708edc /editor
parent809a98216267f3066b9fec2f02b2042bdc9d3e0d (diff)
downloadredot-engine-4fb7aac651b64b469d64a7fbb5c0058031fe63aa.tar.gz
Replace magic num in editor_properties_array_dict
Quick update to editor/editor_properties_array_dict max size. Currently, an array in the EditorInspector won't display a number higher than 1,000,000. In place of the current magic number this sets the max to be the INT32_MAX. This eludes the magic number in place and is sufficiently large. Resolves #77190
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_properties_array_dict.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index 6fa2ec23bb..5acb30b9d6 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -311,7 +311,7 @@ void EditorPropertyArray::update_property() {
size_slider = memnew(EditorSpinSlider);
size_slider->set_step(1);
- size_slider->set_max(1000000);
+ size_slider->set_max(INT32_MAX);
size_slider->set_h_size_flags(SIZE_EXPAND_FILL);
size_slider->set_read_only(is_read_only());
size_slider->connect("value_changed", callable_mp(this, &EditorPropertyArray::_length_changed));