Merge pull request #2504 from vnen/fix-collisionshape-add-bug
Check if shape is valid before referencing it
This commit is contained in:
commit
eea52d44c7
@ -113,6 +113,10 @@ void CollisionShape2D::_notification(int p_what) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (!shape.is_valid()) {
|
||||
break;
|
||||
}
|
||||
|
||||
rect=Rect2();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user