diff --git a/src/mol-canvas3d/canvas3d.ts b/src/mol-canvas3d/canvas3d.ts index 6cee297115311fc3d6d6f0abe9ba808fa4aa3ab5..b8d7d83cfb68def49df123cec5ae7a58a349f2a8 100644 --- a/src/mol-canvas3d/canvas3d.ts +++ b/src/mol-canvas3d/canvas3d.ts @@ -318,7 +318,9 @@ namespace Canvas3D { add: (repr: Representation.Any) => { add(repr) - reprUpdatedSubscriptions.set(repr, repr.updated.subscribe(_ => add(repr))) + reprUpdatedSubscriptions.set(repr, repr.updated.subscribe(_ => { + if (!repr.state.syncManually) add(repr) + })) }, remove: (repr: Representation.Any) => { const updatedSubscription = reprUpdatedSubscriptions.get(repr) diff --git a/src/mol-plugin/state/actions/basic.ts b/src/mol-plugin/state/actions/basic.ts index 190dc4fd551bd6603fdeb55a50b8f5fac01359d3..d102d1151fe90875636e21d767e7c13ec4323057 100644 --- a/src/mol-plugin/state/actions/basic.ts +++ b/src/mol-plugin/state/actions/basic.ts @@ -161,7 +161,7 @@ export const UpdateTrajectory = StateAction.create<PluginStateObject.Root, void, if (params.action === 'reset') { for (const m of models) { update.to(m.transform.ref).update(StateTransforms.Model.ModelFromTrajectory, - () => ({ modelIndex: 0})); + () => ({ modelIndex: 0 })); } } else { for (const m of models) { diff --git a/src/mol-repr/structure/units-representation.ts b/src/mol-repr/structure/units-representation.ts index b796a22dc527b0e63f879be078264c43d48d6c8d..01b381c9e57b6f9fd55861aa1dad9774bc0b20c2 100644 --- a/src/mol-repr/structure/units-representation.ts +++ b/src/mol-repr/structure/units-representation.ts @@ -102,7 +102,7 @@ export function UnitsRepresentation<P extends UnitsParams>(label: string, ctx: R // }) // unusedVisuals.forEach(visual => visual.destroy()) } else if (structure && structure !== _structure && Structure.areEquivalent(structure, _structure)) { - console.log(label, 'structures equivalent but not identical') + // console.log(label, 'structures equivalent but not identical') // Expects that for structures with the same hashCode, // the unitSymmetryGroups are the same as well. // Re-uses existing visuals for the groups of the new structure.