Skip to content

Commit fd7d148

Browse files
committed
Workaround to prevent ghost objects while dragging notes in bomb placement mode
1 parent 818a7a0 commit fd7d148

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/__Scripts/MapEditor/Mapping/PlacementControllers/NotePlacement.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ public void UpdateCut(int value)
172172
DraggedObjectContainer.NoteData.CutDirection = value;
173173
noteAppearanceSo.SetNoteAppearance(DraggedObjectContainer);
174174
}
175-
else if (beatmapNoteInputController.QuickModificationActive && Settings.Instance.QuickNoteEditing)
175+
// TODO: This IsActive is a workaround to prevent ghost notes. This happens because bomb placement could be
176+
// dragging a note and quick editing results in issues
177+
else if (IsActive && beatmapNoteInputController.QuickModificationActive && Settings.Instance.QuickNoteEditing)
176178
{
177179
var note = ObjectUnderCursor();
178180
if (note != null && note.ObjectData is BaseNote noteData)

0 commit comments

Comments
 (0)