Remove try catch in light demo because 'stack problem..., cleared' message appears
[scilab.git] / scilab / modules / graphics / demos / lighting / rot_light.dem.sce
index 74a0274..e986823 100644 (file)
@@ -18,15 +18,12 @@ function demo_rot_light()
     l=light();
     s=gce();
 
-    try
-        for i=0:2000
-            sleep(5);
-            x = 2*cos(i*%pi/180);
-            y = 2*sin(i*%pi/180);
-            z = 2;
-            l.position = [x y z];
-        end
-    catch
+    for i=0:2000
+        sleep(5);
+        x = 2*cos(i*%pi/180);
+        y = 2*sin(i*%pi/180);
+        z = 2;
+        l.position = [x y z];
     end
     // DEMO END
 endfunction