diff --git a/src/mol-plugin/util/structure-selection-helper.ts b/src/mol-plugin/util/structure-selection-helper.ts index 1a221e6b715086f4098b0bad5f891df4eefff036..9ab63cbf105865321768b2375e18dfc4c653e258 100644 --- a/src/mol-plugin/util/structure-selection-helper.ts +++ b/src/mol-plugin/util/structure-selection-helper.ts @@ -127,9 +127,17 @@ const ligand = MS.struct.modifier.union([ }) ]) +// don't innclude branched entities as they have their own link representation const ligandPlusConnected = MS.struct.modifier.union([ - MS.struct.modifier.includeConnected({ - 0: ligand, 'layer-count': 1, 'as-whole-residues': true + MS.struct.modifier.exceptBy({ + 0: MS.struct.modifier.union([ + MS.struct.modifier.includeConnected({ + 0: ligand, + 'layer-count': 1, + 'as-whole-residues': true + }) + ]), + by: branched }) ])