Skip to content

Commit

Permalink
#5023-Spliting molecule on pieces with attachment points of each caus…
Browse files Browse the repository at this point in the history
…e crash when switching to Macro mode (#5137)

* #5023 fix crashing of spliting molecule on pieces with attachment points

* fix: change condition to set fragment id to monomer
  • Loading branch information
beisenova-aliya authored Jul 29, 2024
1 parent 7b602f9 commit c2d471d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,12 @@ export class MacromoleculesConverter {
fragmentStruct,
drawingEntitiesManager,
);
fragmentIdToMonomer.set(
_fragment[0] as number,
monomerAddCommand.operations[0].monomer as BaseMonomer,
);
_fragment.forEach((_fid) => {
fragmentIdToMonomer.set(
_fid as number,
monomerAddCommand.operations[0].monomer as BaseMonomer,
);
});
command.merge(monomerAddCommand);
fragmentNumber++;
});
Expand Down

0 comments on commit c2d471d

Please sign in to comment.