Explorar o código

fix StructureElementSelectionManager.getPrincipalAxes for multiple entries

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

+ 1 - 1
src/mol-plugin/util/structure-element-selection.ts

@@ -83,7 +83,7 @@ class StructureElementSelectionManager {
         let offset = 0
         this.entries.forEach(v => {
             StructureElement.Loci.toPositionsArray(v.selection, positions, offset)
-            offset += StructureElement.Loci.size(v.selection)
+            offset += StructureElement.Loci.size(v.selection) * 3
         })
         return PrincipalAxes.ofPoints(Matrix.fromArray(positions, 3, elementCount))
     }