mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
I hope someone got fired for that blunder.
This commit is contained in:
parent
2c3e513d5b
commit
2dad5953fd
1 changed files with 4 additions and 3 deletions
|
@ -2716,12 +2716,13 @@ class ChartEditorState extends HaxeUIState
|
||||||
trace('Creating new Note... (${renderedNotes.members.length})');
|
trace('Creating new Note... (${renderedNotes.members.length})');
|
||||||
noteSprite.parentState = this;
|
noteSprite.parentState = this;
|
||||||
|
|
||||||
// Setting note data resets position relative to the grid so we fix that.
|
|
||||||
noteSprite.updateNotePosition(renderedNotes);
|
|
||||||
|
|
||||||
// The note sprite handles animation playback and positioning.
|
// The note sprite handles animation playback and positioning.
|
||||||
noteSprite.noteData = noteData;
|
noteSprite.noteData = noteData;
|
||||||
|
|
||||||
|
// Setting note data resets the position relative to the group!
|
||||||
|
// If we don't update the note position AFTER setting the note data, the note will be rendered offscreen at y=5000.
|
||||||
|
noteSprite.updateNotePosition(renderedNotes);
|
||||||
|
|
||||||
// Add hold notes that are now visible (and not already displayed).
|
// Add hold notes that are now visible (and not already displayed).
|
||||||
if (noteSprite.noteData != null && noteSprite.noteData.length > 0 && displayedHoldNoteData.indexOf(noteSprite.noteData) == -1)
|
if (noteSprite.noteData != null && noteSprite.noteData.length > 0 && displayedHoldNoteData.indexOf(noteSprite.noteData) == -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue