1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add several missing Null checks in _notification

This fixes #6118
This commit is contained in:
Hein-Pieter van Braam
2017-08-26 22:50:15 +02:00
parent 53c0010932
commit 9a1d9a41eb
2 changed files with 6 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ void CollisionPolygonEditor::_notification(int p_what) {
} break;
case NOTIFICATION_PROCESS: {
if (!node) {
return;
}
if (node->get_depth() != prev_depth) {
_polygon_draw();