aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-13 12:51:14 -0300
committerJuan Linietsky2017-01-13 12:51:14 -0300
commite53c247cb16b25b828461f32533da64f4fab0e0b (patch)
tree985328cee0387b987889ecccb65293bf87883dec /tools/editor/editor_node.cpp
parent0ad9939603a3d659f3f9cfba095a2e0c082483e8 (diff)
downloadgodot-e53c247cb16b25b828461f32533da64f4fab0e0b.tar.gz
godot-e53c247cb16b25b828461f32533da64f4fab0e0b.tar.zst
godot-e53c247cb16b25b828461f32533da64f4fab0e0b.zip
Created new Engine singleton, and moved engine related OS functions to it.
Diffstat (limited to 'tools/editor/editor_node.cpp')
-rw-r--r--tools/editor/editor_node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 92a2d1f3a..b4a2da483 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -258,7 +258,7 @@ void EditorNode::_notification(int p_what) {
//get_root_node()->set_rect(viewport->get_global_rect());
//update the circle
- uint64_t frame = OS::get_singleton()->get_frames_drawn();
+ uint64_t frame = Engine::get_singleton()->get_frames_drawn();
uint32_t tick = OS::get_singleton()->get_ticks_msec();
if (frame!=circle_step_frame && (tick-circle_step_msec)>(1000/8)) {
@@ -6614,7 +6614,7 @@ EditorNode::EditorNode() {
circle_step_msec=OS::get_singleton()->get_ticks_msec();
- circle_step_frame=OS::get_singleton()->get_frames_drawn();
+ circle_step_frame=Engine::get_singleton()->get_frames_drawn();
circle_step=0;
_rebuild_import_menu();