Merge pull request #2504 from vnen/fix-collisionshape-add-bug

Check if shape is valid before referencing it
This commit is contained in:
Juan Linietsky 2015-09-23 12:46:15 -03:00
commit eea52d44c7

View file

@ -113,6 +113,10 @@ void CollisionShape2D::_notification(int p_what) {
break;
}
if (!shape.is_valid()) {
break;
}
rect=Rect2();