diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-29 07:54:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 07:54:52 +0200 |
commit | 0dc809cd0142fa7b512c46fa00dabbac77f60e54 (patch) | |
tree | fa7562192adc01e6a52c9f623212c6565f8134dd | |
parent | ddecaf5451890fc7d2a931807c78fd1fe3a3e65e (diff) | |
parent | 97a4ae9e0f2d6328b9e65a47f77c95086bd2d84e (diff) |
Merge pull request #54367 from lyuma/viewport_off_by_one
Fix off by one in Viewport.render_target_update_mode property enum
-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 5f8e66e337..6388b375d9 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -3860,7 +3860,7 @@ void SubViewport::_bind_methods() { 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"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "render_target_update_mode", PROPERTY_HINT_ENUM, "Disabled,Once,When Visible,Always"), "set_update_mode", "get_update_mode"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "render_target_update_mode", PROPERTY_HINT_ENUM, "Disabled,Once,When Visible,When Parent Visible,Always"), "set_update_mode", "get_update_mode"); BIND_ENUM_CONSTANT(CLEAR_MODE_ALWAYS); BIND_ENUM_CONSTANT(CLEAR_MODE_NEVER); |