Skip to content

Commit

Permalink
#905 Suppress viz look-up on panel switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Meijer committed Mar 22, 2016
1 parent 886c353 commit a931240
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ define(['js/logger',

//setting the active object to the container
if (typeof this._memberListContainerID === 'string') {
WebGMEGlobal.State.registerSuppressVisualizerFromNode(true);
WebGMEGlobal.State.registerActiveObject(this._memberListContainerID);
WebGMEGlobal.State.registerSuppressVisualizerFromNode(false);
}
};

Expand Down
2 changes: 2 additions & 0 deletions src/client/js/Panels/ModelEditor/ModelEditorControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,9 @@ define(['js/logger',
}

if (this.currentNodeInfo && typeof this.currentNodeInfo.id === 'string') {
WebGMEGlobal.State.registerSuppressVisualizerFromNode(true);
WebGMEGlobal.State.registerActiveObject(this.currentNodeInfo.id);
WebGMEGlobal.State.registerSuppressVisualizerFromNode(false);
}
};

Expand Down

0 comments on commit a931240

Please sign in to comment.