Merge pull request #57984 from jmb462/collisionshape_handles

This commit is contained in:
Rémi Verschelde 2022-02-11 23:03:20 +01:00 committed by GitHub
commit a0558b8af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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) {