diff options
| author | Juan Linietsky | 2017-08-20 12:55:46 -0300 |
|---|---|---|
| committer | GitHub | 2017-08-20 12:55:46 -0300 |
| commit | 541fdffc0ab2115238fe9cedbf1c088b15f11fdf (patch) | |
| tree | 187c5d0278e5075907fef8a86b4d00d6a0b7161a /scene/gui/video_player.cpp | |
| parent | 831e21e89ba0275b43b6a351e538256b8ce715a3 (diff) | |
| parent | 90b8a5b71ef79e0339826507c4b290f0c51b7cd2 (diff) | |
| download | godot-541fdffc0ab2115238fe9cedbf1c088b15f11fdf.tar.gz godot-541fdffc0ab2115238fe9cedbf1c088b15f11fdf.tar.zst godot-541fdffc0ab2115238fe9cedbf1c088b15f11fdf.zip | |
Diffstat (limited to 'scene/gui/video_player.cpp')
| -rw-r--r-- | scene/gui/video_player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/video_player.cpp b/scene/gui/video_player.cpp index 9c018a4e7..4886b1cc2 100644 --- a/scene/gui/video_player.cpp +++ b/scene/gui/video_player.cpp @@ -116,7 +116,7 @@ void VideoPlayer::_notification(int p_notification) { case NOTIFICATION_ENTER_TREE: { - if (stream.is_valid() && autoplay && !get_tree()->is_editor_hint()) { + if (stream.is_valid() && autoplay && !Engine::get_singleton()->is_editor_hint()) { play(); } } break; |
