diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-11 23:03:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 23:03:20 +0100 |
commit | a0558b8af84a5e98cf9d44a888db48470e009e09 (patch) | |
tree | 8dd1e647f8887f499d801d416b036e3727d0fa98 | |
parent | 006ce4d83d2588907604b121023fb9f060ca1085 (diff) | |
parent | ef995b222eaa491d0bcca92afb85b2bed38b11ae (diff) |
Merge pull request #57984 from jmb462/collisionshape_handles
-rw-r--r-- | editor/plugins/collision_shape_2d_editor_plugin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/plugins/collision_shape_2d_editor_plugin.cpp b/editor/plugins/collision_shape_2d_editor_plugin.cpp index 8a5df6ac50..894b1dd160 100644 --- a/editor/plugins/collision_shape_2d_editor_plugin.cpp +++ b/editor/plugins/collision_shape_2d_editor_plugin.cpp @@ -323,6 +323,10 @@ bool CollisionShape2DEditor::forward_canvas_gui_input(const Ref<InputEvent> &p_e return false; } + if (!node->is_visible_in_tree()) { + return false; + } + if (shape_type == -1) { return false; } @@ -445,6 +449,10 @@ void CollisionShape2DEditor::forward_canvas_draw_over_viewport(Control *p_overla return; } + if (!node->is_visible_in_tree()) { + return; + } + _get_current_shape_type(); if (shape_type == -1) { |