Browse Source

fix bug in structure repr interaction

David Sehnal 5 years ago
parent
commit
90d05d9260

+ 2 - 2
src/mol-plugin/behavior/dynamic/selection/structure-representation-interaction.ts

@@ -103,13 +103,13 @@ export class StructureRepresentationInteractionBehavior extends PluginBehavior.W
         if (!refs[StructureRepresentationInteractionTags.SurrRepr]) {
             refs[StructureRepresentationInteractionTags.SurrRepr] = builder
                 .to(refs['structure-interaction-surr-sel']!)
-                .apply(StateTransforms.Representation.StructureRepresentation3D,this.params.nciParams, { tags: StructureRepresentationInteractionTags.SurrRepr }).ref;
+                .apply(StateTransforms.Representation.StructureRepresentation3D,this.params.surroundingsParams, { tags: StructureRepresentationInteractionTags.SurrRepr }).ref;
         }
 
         if (!refs[StructureRepresentationInteractionTags.SurrNciRepr]) {
             refs[StructureRepresentationInteractionTags.SurrNciRepr] = builder
                 .to(refs['structure-interaction-surr-sel']!)
-                .apply(StateTransforms.Representation.StructureRepresentation3D, this.params.surroundingsParams, { tags: StructureRepresentationInteractionTags.SurrNciRepr }).ref;
+                .apply(StateTransforms.Representation.StructureRepresentation3D, this.params.nciParams, { tags: StructureRepresentationInteractionTags.SurrNciRepr }).ref;
         }
 
         return { state, builder, refs };