diff options
| author | Ignacio Etcheverry | 2017-08-19 01:02:56 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-08-19 01:29:45 +0200 |
| commit | 90b8a5b71ef79e0339826507c4b290f0c51b7cd2 (patch) | |
| tree | 6f24bbc63ef9674687589f9ec9017e9fd09d266e /scene/2d/collision_polygon_2d.cpp | |
| parent | fd69604bd9dc743494a7818f25f384cc7f521b33 (diff) | |
| download | godot-90b8a5b71ef79e0339826507c4b290f0c51b7cd2.tar.gz godot-90b8a5b71ef79e0339826507c4b290f0c51b7cd2.tar.zst godot-90b8a5b71ef79e0339826507c4b290f0c51b7cd2.zip | |
Diffstat (limited to 'scene/2d/collision_polygon_2d.cpp')
| -rw-r--r-- | scene/2d/collision_polygon_2d.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/2d/collision_polygon_2d.cpp b/scene/2d/collision_polygon_2d.cpp index bd669eb4c..433661e39 100644 --- a/scene/2d/collision_polygon_2d.cpp +++ b/scene/2d/collision_polygon_2d.cpp @@ -30,6 +30,7 @@ #include "collision_polygon_2d.h" #include "collision_object_2d.h" +#include "engine.h" #include "scene/resources/concave_polygon_shape_2d.h" #include "scene/resources/convex_polygon_shape_2d.h" @@ -134,7 +135,7 @@ void CollisionPolygon2D::_notification(int p_what) { parent->shape_owner_set_one_way_collision(owner_id, one_way_collision); } - /*if (get_tree()->is_editor_hint()) { + /*if (Engine::get_singleton()->is_editor_hint()) { //display above all else set_z_as_relative(false); set_z(VS::CANVAS_ITEM_Z_MAX - 1); @@ -158,7 +159,7 @@ void CollisionPolygon2D::_notification(int p_what) { case NOTIFICATION_DRAW: { - if (!get_tree()->is_editor_hint() && !get_tree()->is_debugging_collisions_hint()) { + if (!Engine::get_singleton()->is_editor_hint() && !get_tree()->is_debugging_collisions_hint()) { break; } |
