diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-11 14:34:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 14:34:18 +0100 |
commit | d40d86b959eea69cea16199390243abdbaa24621 (patch) | |
tree | bec5aba288d12b7a172cea7ef17d40937604cd8d /scene/main | |
parent | dcd2364dacc6c0af2e949ca34dd6e7f6e75e7d5c (diff) | |
parent | 0c46f73b5e5e89ba8fbe1f2294f203b5e9df2d0a (diff) |
Merge pull request #56667 from Ice-Cube69/fix_incorrect_property_types
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index a7534099e3..4ad250ff54 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -3954,8 +3954,8 @@ void SubViewport::_bind_methods() { ClassDB::bind_method(D_METHOD("set_clear_mode", "mode"), &SubViewport::set_clear_mode); ClassDB::bind_method(D_METHOD("get_clear_mode"), &SubViewport::get_clear_mode); - ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "size"), "set_size", "get_size"); - ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "size_2d_override"), "set_size_2d_override", "get_size_2d_override"); + ADD_PROPERTY(PropertyInfo(Variant::VECTOR2I, "size"), "set_size", "get_size"); + ADD_PROPERTY(PropertyInfo(Variant::VECTOR2I, "size_2d_override"), "set_size_2d_override", "get_size_2d_override"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "size_2d_override_stretch"), "set_size_2d_override_stretch", "is_size_2d_override_stretch_enabled"); ADD_GROUP("Render Target", "render_target_"); ADD_PROPERTY(PropertyInfo(Variant::INT, "render_target_clear_mode", PROPERTY_HINT_ENUM, "Always,Never,Next Frame"), "set_clear_mode", "get_clear_mode"); |