Skip to content

Commit 7ca34a4

Browse files
committed
Fixed bug preventing pasted patterns from reusing existing patterns.
1 parent 96537ce commit 7ca34a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/Selection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export class Selection {
371371
const existingPattern: Pattern | undefined = this._doc.song.channels[channel].patterns[copiedPatternIndex - 1];
372372

373373
if (existingPattern != undefined &&
374-
copiedPartDuration == Config.partsPerBeat * Config.partsPerBeat * this._doc.song.beatsPerBar &&
374+
copiedPartDuration == Config.partsPerBeat * this._doc.song.beatsPerBar &&
375375
comparePatternNotes(patternCopy["notes"], existingPattern.notes) &&
376376
instrumentCopy == existingPattern.instrument)
377377
{

0 commit comments

Comments
 (0)