summaryrefslogtreecommitdiff
path: root/scene/main/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/timer.cpp')
-rw-r--r--scene/main/timer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp
index deef9d5876..8e80f868c6 100644
--- a/scene/main/timer.cpp
+++ b/scene/main/timer.cpp
@@ -37,9 +37,10 @@ void Timer::_notification(int p_what) {
case NOTIFICATION_READY: {
if (autostart) {
- if (get_scene()->is_editor_hint() && get_scene()->get_edited_scene_root() && (get_scene()->get_edited_scene_root()==this || get_scene()->get_edited_scene_root()->is_a_parent_of(this)))
+#ifdef TOOLS_ENABLED
+ if (get_scene()->is_editor_hint() && get_scene()->get_edited_scene_root() && (get_scene()->get_edited_scene_root()==this || get_scene()->get_edited_scene_root()->is_a_parent_of(this)))
break;
- start();
+#endif start();
}
} break;
case NOTIFICATION_PROCESS: {