diff options
| author | Todd Ross | 2018-01-22 22:39:36 -0600 |
|---|---|---|
| committer | Todd Ross | 2018-01-22 22:45:38 -0600 |
| commit | fd6a98b753a1b749129d0c743db5d02bcedd7b0a (patch) | |
| tree | 1ef64a0c70055a96b948aa0a4dea1562d99e9686 /scene/2d/path_2d.cpp | |
| parent | 511742eb68790345abf594b42b6c25b38360c3df (diff) | |
| download | godot-fd6a98b753a1b749129d0c743db5d02bcedd7b0a.tar.gz godot-fd6a98b753a1b749129d0c743db5d02bcedd7b0a.tar.zst godot-fd6a98b753a1b749129d0c743db5d02bcedd7b0a.zip | |
Diffstat (limited to 'scene/2d/path_2d.cpp')
| -rw-r--r-- | scene/2d/path_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp index 2c8f509bd..052a0ac02 100644 --- a/scene/2d/path_2d.cpp +++ b/scene/2d/path_2d.cpp @@ -39,7 +39,7 @@ Rect2 Path2D::_edit_get_rect() const { - if (curve->get_point_count() == 0) + if (!curve.is_valid() || curve->get_point_count() == 0) return Rect2(0, 0, 0, 0); Rect2 aabb = Rect2(curve->get_point_position(0), Vector2(0, 0)); |
