aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/collision_polygon_2d.cpp
diff options
context:
space:
mode:
authorJerome670002017-12-29 23:06:03 +0100
committerJérôme2018-01-03 13:02:26 +0100
commit42ae3525a3adfc9518361aab5625d7ff76e97623 (patch)
tree0b993bd9d2b174be583f83400bc115a651815806 /scene/2d/collision_polygon_2d.cpp
parent99960d929435423b25e9bfb55051af60edbfcca9 (diff)
downloadgodot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.gz
godot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.zst
godot-42ae3525a3adfc9518361aab5625d7ff76e97623.zip
Diffstat (limited to 'scene/2d/collision_polygon_2d.cpp')
-rw-r--r--scene/2d/collision_polygon_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/collision_polygon_2d.cpp b/scene/2d/collision_polygon_2d.cpp
index 92855299a..9a4c88eff 100644
--- a/scene/2d/collision_polygon_2d.cpp
+++ b/scene/2d/collision_polygon_2d.cpp
@@ -131,7 +131,7 @@ void CollisionPolygon2D::_notification(int p_what) {
/*if (Engine::get_singleton()->is_editor_hint()) {
//display above all else
set_z_as_relative(false);
- set_z(VS::CANVAS_ITEM_Z_MAX - 1);
+ set_z_index(VS::CANVAS_ITEM_Z_MAX - 1);
}*/
} break;