Skip to content

Commit

Permalink
#5931 copy cut paste functionality not working for microstructures in…
Browse files Browse the repository at this point in the history
… macro mode (#5975)
  • Loading branch information
mnmsvlw authored Nov 16, 2024
1 parent 990ddbf commit 61ed9b1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { DrawingEntitiesManager } from 'domain/entities/DrawingEntitiesManager';
import { HydrogenBond } from 'domain/entities/HydrogenBond';
import { AttachmentPointName } from 'domain/types';
import { MACROMOLECULES_BOND_TYPES } from 'application/editor/tools/Bond';
import { Atom } from 'domain/entities/CoreAtom';

export abstract class BaseMode {
private _pasteIsInProgress = false;
Expand Down Expand Up @@ -117,6 +118,12 @@ export abstract class BaseMode {
entity.position,
entity,
);
} else if (entity instanceof Atom) {
drawingEntitiesManager.addMonomerChangeModel(
entity.monomer.monomerItem,
entity.monomer.position,
entity.monomer,
);
} else if (entity instanceof PolymerBond && entity.secondMonomer) {
const firstAttachmentPoint =
entity.firstMonomer.getAttachmentPointByBond(entity);
Expand Down

0 comments on commit 61ed9b1

Please sign in to comment.