diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-27 09:46:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-27 09:46:28 +0200 |
| commit | 5f18b56a7ebb6130eaaa38bd54ed7e0f3b8774ff (patch) | |
| tree | 94972bf77620e31d1e8a2e29ea04511427e0d257 | |
| parent | 1f011035d750edb1eabb66f620d7f73aa0e125d7 (diff) | |
| parent | 87917e769fed916a71d06039dfeba084d15440df (diff) | |
| download | redot-engine-5f18b56a7ebb6130eaaa38bd54ed7e0f3b8774ff.tar.gz | |
Merge pull request #10680 from Noshyaar/pr-viewport
Viewport: fix 'size' binding from Rect2 to Vector2
| -rw-r--r-- | scene/main/viewport.cpp | 2 |
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") ; |
