Explorar o código

fixed colorTheme.structure assignment

Alexander Rose %!s(int64=6) %!d(string=hai) anos
pai
achega
91a3197d9b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-geo/representation/structure/units-visual.ts

+ 1 - 1
src/mol-geo/representation/structure/units-visual.ts

@@ -71,6 +71,7 @@ export function UnitsMeshVisual<P extends UnitsMeshProps>(builder: UnitsMeshVisu
         if (!renderObject) return
 
         const newProps = Object.assign({}, currentProps, props)
+        newProps.colorTheme.structure = currentStructure
         const unit = currentGroup.units[0]
 
         locationIt.reset()
@@ -131,7 +132,6 @@ export function UnitsMeshVisual<P extends UnitsMeshProps>(builder: UnitsMeshVisu
             } else {
                 if (group && !areGroupsIdentical(group, currentGroup)) {
                     currentGroup = group
-                    currentProps.colorTheme.structure = currentStructure
                 }
                 await update(ctx, props)
             }