summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-05-29 09:03:15 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-05-29 09:03:15 +0800
commitfd5118c781ec49f4e5d5084d8f87b0579b1300d7 (patch)
tree1a8d59a4ed2fdafd10f94215d24d2b5568b81ee9 /scene
parent1e6b11dcd4ad3abb7c621674674b718f5e0a2278 (diff)
downloadredot-engine-fd5118c781ec49f4e5d5084d8f87b0579b1300d7.tar.gz
Add range hint for SubViewportContainer.stretch_shrink
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/subviewport_container.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/subviewport_container.cpp b/scene/gui/subviewport_container.cpp
index f6cfe6ab18..c715aceb0b 100644
--- a/scene/gui/subviewport_container.cpp
+++ b/scene/gui/subviewport_container.cpp
@@ -287,7 +287,7 @@ void SubViewportContainer::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_stretch_shrink"), &SubViewportContainer::get_stretch_shrink);
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "stretch"), "set_stretch", "is_stretch_enabled");
- ADD_PROPERTY(PropertyInfo(Variant::INT, "stretch_shrink"), "set_stretch_shrink", "get_stretch_shrink");
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "stretch_shrink", PROPERTY_HINT_RANGE, "1,32,1,or_greater"), "set_stretch_shrink", "get_stretch_shrink");
GDVIRTUAL_BIND(_propagate_input_event, "event");
}