From 8255b88d111dcde6e5eac3d6aabb03cf3df4a25c Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 5 Jul 2019 22:56:25 -0300 Subject: Make 'size_override_stretch' a property in 'Viewport' --- scene/main/viewport.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 8561d9aedb..334c49f7cc 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -3064,6 +3064,7 @@ void Viewport::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL, "arvr"), "set_use_arvr", "use_arvr"); ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "size"), "set_size", "get_size"); + ADD_PROPERTY(PropertyInfo(Variant::BOOL, "size_override_stretch"), "set_size_override_stretch", "is_size_override_stretch_enabled"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "own_world"), "set_use_own_world", "is_using_own_world"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "world", PROPERTY_HINT_RESOURCE_TYPE, "World"), "set_world", "get_world"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "world_2d", PROPERTY_HINT_RESOURCE_TYPE, "World2D", 0), "set_world_2d", "get_world_2d"); -- cgit v1.2.3