Permalink
Browse files

Add null check for viewer3d.dropObject

  • Loading branch information...
1 parent 381b7a1 commit 065be2b314056c29618ba303bf6924dcf5be74f4 Wilbur Shi committed Aug 5, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/main.js
View
@@ -695,7 +695,7 @@ function updateBuildVolumeSettings() {
});
viewer3d.setBuildVolume(settings.get('buildVolume'));
- viewer3d.dropObject(slicer.mesh);
+ slicer.mesh && viewer3d.dropObject(slicer.mesh);
viewer3d.render();
size && updateMeshInfoUI();

0 comments on commit 065be2b

Please sign in to comment.