Skip to content

Commit

Permalink
fix(Renderer): fix switch between local/remote rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 3, 2018
1 parent 1590515 commit 03d20ea
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/MainView.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ export class Visualizer extends React.Component {
if (nextProps.remoteRendering) {
// Changing back to remote rendering
const params = this.renderer.getCameraParameters();
this.props.updateCamera(
this.props.viewId,
params.focalPoint,
params.viewUp,
params.position
);
if (params) {
this.props.updateCamera(
this.props.viewId,
params.focalPoint,
params.viewUp,
params.position
);
}
}
ImageProviders.reset();
this.needsSetImageProvider = true;
Expand Down

0 comments on commit 03d20ea

Please sign in to comment.