mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-02-07 20:18:21 +00:00
Fix _time of nullable compile error.
This commit is contained in:
parent
6bf6b8ef11
commit
26f83b5a81
|
@ -4179,12 +4179,14 @@ class ChartEditorState extends HaxeUIState
|
|||
function moveSongToScrollPosition():Void
|
||||
{
|
||||
// Update the songPosition in the audio tracks.
|
||||
if (audioInstTrack != null) audioInstTrack.time = scrollPositionInMs + playheadPositionInMs;
|
||||
if (audioInstTrack != null)
|
||||
{
|
||||
audioInstTrack.time = scrollPositionInMs + playheadPositionInMs;
|
||||
// Update the songPosition in the Conductor.
|
||||
Conductor.update(audioInstTrack.time);
|
||||
}
|
||||
if (audioVocalTrackGroup != null) audioVocalTrackGroup.time = scrollPositionInMs + playheadPositionInMs;
|
||||
|
||||
// Update the songPosition in the Conductor.
|
||||
Conductor.update(audioInstTrack.time);
|
||||
|
||||
// We need to update the note sprites because we changed the scroll position.
|
||||
noteDisplayDirty = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue