summaryrefslogtreecommitdiff
path: root/scene/2d/position_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/position_2d.cpp')
-rw-r--r--scene/2d/position_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/position_2d.cpp b/scene/2d/position_2d.cpp
index 67aff9c520..518593cee1 100644
--- a/scene/2d/position_2d.cpp
+++ b/scene/2d/position_2d.cpp
@@ -90,6 +90,7 @@ void Position2D::_notification(int p_what) {
case NOTIFICATION_ENTER_TREE: {
update();
} break;
+
case NOTIFICATION_DRAW: {
if (!is_inside_tree()) {
break;
@@ -97,7 +98,6 @@ void Position2D::_notification(int p_what) {
if (Engine::get_singleton()->is_editor_hint()) {
_draw_cross();
}
-
} break;
}
}