Merge pull request #55890 from Vitika9/54100
This commit is contained in:
commit
a5c14bd102
|
@ -462,6 +462,10 @@ void Viewport::_notification(int p_what) {
|
||||||
RenderingServer::get_singleton()->viewport_set_parent_viewport(viewport, RID());
|
RenderingServer::get_singleton()->viewport_set_parent_viewport(viewport, RID());
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: {
|
case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: {
|
||||||
|
if (!get_tree()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (get_tree()->is_debugging_collisions_hint() && contact_2d_debug.is_valid()) {
|
if (get_tree()->is_debugging_collisions_hint() && contact_2d_debug.is_valid()) {
|
||||||
RenderingServer::get_singleton()->canvas_item_clear(contact_2d_debug);
|
RenderingServer::get_singleton()->canvas_item_clear(contact_2d_debug);
|
||||||
RenderingServer::get_singleton()->canvas_item_set_draw_index(contact_2d_debug, 0xFFFFF); //very high index
|
RenderingServer::get_singleton()->canvas_item_set_draw_index(contact_2d_debug, 0xFFFFF); //very high index
|
||||||
|
|
Loading…
Reference in New Issue