Merge pull request #10669 from hpvb/fix-6118

Add several missing Null checks in _notification
This commit is contained in:
Rémi Verschelde 2017-08-27 02:07:41 +02:00 committed by GitHub
commit 3ec9e26cb4
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();

View file

@ -835,6 +835,9 @@ void GridMapEditor::_notification(int p_what) {
duplicate_instance = RID();
} else if (p_what == NOTIFICATION_PROCESS) {
if (!node) {
return;
}
Transform xf = node->get_global_transform();