SceneMainLoop -> SceneTree
-=-=-=-=-=-=-=-=-=-=-=-=-=- *YOUR SOURCE MIGHT NOT WORK* For mor information on fix: https://github.com/okamstudio/godot/wiki/devel_scene_tree Other stuff: -Shower of bullets demo -Fixes all around
This commit is contained in:
@ -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())) ;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user