Skip to content

Commit

Permalink
Merge pull request #133 from Smithsonian/dev-bugfix
Browse files Browse the repository at this point in the history
Fix for tour loading regression
  • Loading branch information
gjcope committed May 2, 2022
2 parents c3ba408 + 74d50e4 commit a95c25d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/client/components/CVSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ export default class CVSetup extends Component
this[name].fromData(featureData);
}
}

if (setupData.snapshots) {
this.snapshots.fromData(setupData.snapshots, pathMap);
}
}

toDocument(document: IDocument, sceneIndex: number, pathMap: Map<Component, string>)
Expand Down
5 changes: 5 additions & 0 deletions source/client/nodes/NVScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export default class NVScene extends NVNode
childNode.fromDocument(document, nodeIndex, pathMap);
});
}

const setupData = document.setups[scene.setup];
if (setupData.snapshots) {
this.setup.snapshots.fromData(setupData.snapshots, pathMap);
}
}

toDocument(document: IDocument, pathMap: Map<Component, string>, components?: INodeComponents): number
Expand Down

0 comments on commit a95c25d

Please sign in to comment.