diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-19 16:11:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 16:11:11 +0200 |
commit | f2a31aeefbb04b7d6717b5d970440c4bd97b0a6a (patch) | |
tree | 169e670cc050d9c888612ed049faca3d8804d439 | |
parent | 1c1ddc9381c839ee01f8c13581f948d152d54d80 (diff) | |
parent | f9f3829bd2d3ccc1f80cd8d30e9bddca78814bec (diff) |
Merge pull request #12229 from Noshyaar/pr-v
Fix Viewport clear mode is bool instead of int, fixes #12202
[ci skip]
-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 37a393b55b..12c8b0d89b 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2711,7 +2711,7 @@ void Viewport::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::INT, "debug_draw", PROPERTY_HINT_ENUM, "Disabled,Unshaded,Overdraw,Wireframe"), "set_debug_draw", "get_debug_draw"); ADD_GROUP("Render Target", "render_target_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "render_target_v_flip"), "set_vflip", "get_vflip"); - ADD_PROPERTY(PropertyInfo(Variant::BOOL, "render_target_clear_mode", PROPERTY_HINT_ENUM, "Always,Never,NextFrame"), "set_clear_mode", "get_clear_mode"); + 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_GROUP("Audio Listener", "audio_listener_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "audio_listener_enable_2d"), "set_as_audio_listener_2d", "is_audio_listener_2d"); |