2 Commits 05e5e7cd68 ... cdb3f87e2c

Author SHA1 Message Date
  Raghav Arora cdb3f87e2c Fixed Zooming problem 6 years ago
  Raghav Arora 05e5e7cd68 Fixed Zooming problem 6 years ago
1 changed files with 6 additions and 4 deletions
  1. 6 4
      nova/templates/dataset/wave.html

+ 6 - 4
nova/templates/dataset/wave.html

@@ -74,10 +74,12 @@
             };
 
             rcl2 = new VRC.VolumeRaycaster(config);
-            gt = ops["gray-thresholds"];
-            if (gt != null) {
-                rcl2.setGrayMinValue(gt[0]/255);
-                rcl2.setGrayMaxValue(gt[1]/255);
+            if (ops != null) {
+                gt = ops["gray-thresholds"];
+                if (gt != null) {
+                    rcl2.setGrayMinValue(gt[0]/255);
+                    rcl2.setGrayMaxValue(gt[1]/255);
+                }
             }
         }
         function sendContinuousGetToLocationUntilDone(loc) {