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:
@@ -133,7 +133,7 @@ float Performance::get_monitor(Monitor p_monitor) const {
|
||||
MainLoop *ml = OS::get_singleton()->get_main_loop();
|
||||
if (!ml)
|
||||
return 0;
|
||||
SceneMainLoop *sml = ml->cast_to<SceneMainLoop>();
|
||||
SceneTree *sml = ml->cast_to<SceneTree>();
|
||||
if (!sml)
|
||||
return 0;
|
||||
return sml->get_node_count();
|
||||
|
||||
Reference in New Issue
Block a user