Skip to content

Commit

Permalink
Add range hint for SubViewportContainer.stretch_shrink
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed May 29, 2024
1 parent 1e6b11d commit fd5118c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/subviewport_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit fd5118c

Please sign in to comment.