diff options
| author | Hein-Pieter van Braam | 2017-08-26 22:50:15 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-08-26 22:50:15 +0200 |
| commit | 9a1d9a41eba29bbb9608b0b0f8f9c2ca65ab426f (patch) | |
| tree | d8a67009c1a2c937a8c1b4b331c2243836281736 /editor/plugins/collision_polygon_editor_plugin.cpp | |
| parent | 53c0010932f9c1becb63c16243f3a00ede359989 (diff) | |
| download | godot-9a1d9a41eba29bbb9608b0b0f8f9c2ca65ab426f.tar.gz godot-9a1d9a41eba29bbb9608b0b0f8f9c2ca65ab426f.tar.zst godot-9a1d9a41eba29bbb9608b0b0f8f9c2ca65ab426f.zip | |
Add several missing Null checks in _notification
This fixes #6118
Diffstat (limited to 'editor/plugins/collision_polygon_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/collision_polygon_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/collision_polygon_editor_plugin.cpp b/editor/plugins/collision_polygon_editor_plugin.cpp index 5520d196e..c6fa79622 100644 --- a/editor/plugins/collision_polygon_editor_plugin.cpp +++ b/editor/plugins/collision_polygon_editor_plugin.cpp @@ -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(); |
