Explorar o código

set labels non-pickable

Alexander Rose %!s(int64=6) %!d(string=hai) anos
pai
achega
f08121119e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/mol-plugin/util/structure-labels.ts

+ 1 - 0
src/mol-plugin/util/structure-labels.ts

@@ -38,6 +38,7 @@ export async function getLabelRepresentation(ctx: RuntimeContext, structure: Str
     const repr = prev || ShapeRepresentation(getLabelsShape, Text.Utils);
     const data = getLabelData(structure, params);
     await repr.createOrUpdate(params.options, data).runInContext(ctx);
+    repr.setState({ pickable: false })
     return repr;
 }