Skip to content

Commit

Permalink
Merge pull request #532 from Kitware/fix-chemistry
Browse files Browse the repository at this point in the history
fix(MoleculeToRepresentation): Add missing structure reset at reexecu…
  • Loading branch information
jourdain authored Jan 25, 2018
2 parents 4d43eb5 + a4cbe6c commit 810e921
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Filters/General/MoleculeToRepresentation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ function vtkMoleculeToRepresentation(publicAPI, model) {
let bondIndex = null;
let bondOrder = null;

// Empty arrays
bondPositionData.length = 0;
bondScaleData.length = 0;
bondOrientationData.length = 0;

if (moleculedata.getAtoms()) {
if (moleculedata.getAtoms().coords !== undefined) {
if (moleculedata.getAtoms().coords['3d'] !== undefined) {
Expand Down

0 comments on commit 810e921

Please sign in to comment.