-collision debug is shown above all else, fixes #2985
This commit is contained in:
parent
990690f9f5
commit
9251298f46
3 changed files with 29 additions and 6 deletions
|
|
@ -113,6 +113,12 @@ void CollisionPolygon2D::_notification(int p_what) {
|
|||
case NOTIFICATION_ENTER_TREE: {
|
||||
unparenting=false;
|
||||
can_update_body=get_tree()->is_editor_hint();
|
||||
if (!get_tree()->is_editor_hint()) {
|
||||
//display above all else
|
||||
set_z_as_relative(false);
|
||||
set_z(VS::CANVAS_ITEM_Z_MAX-1);
|
||||
}
|
||||
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
can_update_body=false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue