From e049e0e0f2b448cbd12869e7e3f2f9ce768eab00 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Tue, 5 Feb 2019 16:46:49 -0800 Subject: [PATCH] fixed spheres geo updating issue --- src/mol-geo/geometry/spheres/spheres-builder.ts | 2 +- src/mol-repr/structure/visual/util/element.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mol-geo/geometry/spheres/spheres-builder.ts b/src/mol-geo/geometry/spheres/spheres-builder.ts index b4fb62c2a..9050e723a 100644 --- a/src/mol-geo/geometry/spheres/spheres-builder.ts +++ b/src/mol-geo/geometry/spheres/spheres-builder.ts @@ -54,7 +54,7 @@ export namespace SpheresBuilder { kind: 'spheres', sphereCount: centers.elementCount / 4, centerBuffer: spheres ? ValueCell.update(spheres.centerBuffer, cb) : ValueCell.create(cb), - mappingBuffer: spheres ? ValueCell.update(spheres.centerBuffer, mb) : ValueCell.create(mb), + mappingBuffer: spheres ? ValueCell.update(spheres.mappingBuffer, mb) : ValueCell.create(mb), indexBuffer: spheres ? ValueCell.update(spheres.indexBuffer, ib) : ValueCell.create(ib), groupBuffer: spheres ? ValueCell.update(spheres.groupBuffer, gb) : ValueCell.create(gb), } diff --git a/src/mol-repr/structure/visual/util/element.ts b/src/mol-repr/structure/visual/util/element.ts index 58b60b13e..baab3d964 100644 --- a/src/mol-repr/structure/visual/util/element.ts +++ b/src/mol-repr/structure/visual/util/element.ts @@ -55,7 +55,7 @@ export function createElementSphereImpostor(ctx: VisualContext, unit: Unit, stru const { elements } = unit; const elementCount = elements.length; - const builder = SpheresBuilder.create(elementCount, elementCount / 2) + const builder = SpheresBuilder.create(elementCount, elementCount / 2, spheres) const v = Vec3.zero() const pos = unit.conformation.invariantPosition -- GitLab