summaryrefslogtreecommitdiff
path: root/scene/gui/reference_frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/reference_frame.cpp')
-rw-r--r--scene/gui/reference_frame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/reference_frame.cpp b/scene/gui/reference_frame.cpp
index 679c2cc1e2..44ba3a8972 100644
--- a/scene/gui/reference_frame.cpp
+++ b/scene/gui/reference_frame.cpp
@@ -32,9 +32,9 @@ void ReferenceFrame::_notification(int p_what) {
if (p_what==NOTIFICATION_DRAW) {
- if (!is_inside_scene())
+ if (!is_inside_tree())
return;
- if (get_scene()->is_editor_hint())
+ if (get_tree()->is_editor_hint())
draw_style_box(get_stylebox("border"),Rect2(Point2(),get_size())) ;
}
}