Removes editor_hint from SceneTree
This commit is contained in:
parent
fd69604bd9
commit
90b8a5b71e
47 changed files with 135 additions and 114 deletions
|
|
@ -29,6 +29,8 @@
|
|||
/*************************************************************************/
|
||||
#include "timer.h"
|
||||
|
||||
#include "engine.h"
|
||||
|
||||
void Timer::_notification(int p_what) {
|
||||
|
||||
switch (p_what) {
|
||||
|
|
@ -37,7 +39,7 @@ void Timer::_notification(int p_what) {
|
|||
|
||||
if (autostart) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root() && (get_tree()->get_edited_scene_root() == this || get_tree()->get_edited_scene_root()->is_a_parent_of(this)))
|
||||
if (Engine::get_singleton()->is_editor_hint() && get_tree()->get_edited_scene_root() && (get_tree()->get_edited_scene_root() == this || get_tree()->get_edited_scene_root()->is_a_parent_of(this)))
|
||||
break;
|
||||
#endif
|
||||
start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue