summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2017-08-27 12:03:19 +0700
committerPoommetee Ketson <poommetee@protonmail.com>2017-08-27 12:03:19 +0700
commit87917e769fed916a71d06039dfeba084d15440df (patch)
tree1998ac18f5e7d2555aa639b9c4c1125e7f4209ee /scene
parenta6e37ae2bf57467ed2dae34756e27959f23776c0 (diff)
Viewport: fix 'size' binding from Rect2 to Vector2
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index b4eabaa540..017c4f3bae 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -2735,7 +2735,7 @@ void Viewport::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "arvr"), "set_use_arvr", "use_arvr");
- ADD_PROPERTY(PropertyInfo(Variant::RECT2, "size"), "set_size", "get_size");
+ ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "size"), "set_size", "get_size");
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"), "set_world_2d", "get_world_2d") ;