Skip to content

Commit

Permalink
Update viewer3dcomponent.js
Browse files Browse the repository at this point in the history
Adjust to data change of the model (images to files). Fixes 3d viewer.
  • Loading branch information
CindyvdVries committed Mar 29, 2019
1 parent 4d35764 commit bc35778
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/scripts/components/viewer3dcomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var exports = (function () {
"handler": function () {
let suid = _.get(this.activeModel, "data.suid");
let sedimentClass = _.get(this.activeModel, "data.parameters.composition.value");
let maxTimeStepIndex = _.get(this.activeModel, "data.info.delta_fringe_images.images", []).length - 1; // obtain max TimeStep index based on number of Delta Fringe images
let maxTimeStepIndex = _.get(this.activeModel, "data.info.delta_fringe_images.files", []).length - 1; // obtain max TimeStep index based on number of Delta Fringe images

if (suid !== this.curSuid && maxTimeStepIndex !== -1 && sedimentClass !== undefined) {
this.curSuid = suid;
Expand Down Expand Up @@ -235,7 +235,6 @@ var exports = (function () {
if (!this.activated || _.isUndefined(this.viewer3d)) {
return;
}

try {
if (this.curSuid !== undefined && this.curSedimentClass !== undefined) {
this.viewer3d.dataSet.load({
Expand Down

0 comments on commit bc35778

Please sign in to comment.