Normand Briere
2019-06-03 e24558ddeacfc945b9e9ba0a32b552d04e2ed4dd
CameraPane.java
....@@ -56,8 +56,6 @@
5656 static int CURRENTANTIALIAS = 0; // 1;
5757 /*static*/ boolean RENDERSHADOW = true;
5858 /*static*/ int RENDERPROGRAM = 2; // 0 == none, 1 == fast, 2 == normal
59
- static boolean ANIMATION = false;
60
- static String filename;
6159
6260 boolean DISPLAYTEXT = false;
6361 //boolean REDUCETEXTURE = true;
....@@ -86,7 +84,7 @@
8684 static boolean FULLSCREEN = false;
8785 static boolean SUPPORT = true;
8886 static boolean INERTIA = true;
89
-static boolean FAST = true; // false;
87
+static boolean FAST = false;
9088 static boolean SLOWPOSE = false;
9189 static boolean FOOTCONTACT = true;
9290
....@@ -108,7 +106,7 @@
108106 static boolean OEIL = true;
109107 static boolean OEILONCE = false; // do oeilon then oeiloff
110108 static boolean LOOKAT = true;
111
-static boolean RANDOM = true; // false;
109
+static boolean SWITCH = true; // false;
112110 static boolean HANDLES = false; // selection doesn't work!!
113111 static boolean PAINTMODE = false;
114112
....@@ -1630,7 +1628,7 @@
16301628
16311629 cColor.HSBtoRGB(display.color, display.saturation, 1, display.modelParams0);
16321630
1633
- float[] colorV = GrafreeD.colorV;
1631
+ float[] colorV = Grafreed.colorV;
16341632
16351633 /**/
16361634 if (display.DrawMode() == display.DEFAULT) // && display.RENDERPROGRAM == 0)
....@@ -2142,7 +2140,7 @@
21422140 System.err.println("LIVE = " + Globals.isLIVE());
21432141
21442142 if (!Globals.isLIVE()) // save sound
2145
- GrafreeD.savesound = true; // wav.save();
2143
+ Grafreed.savesound = true; // wav.save();
21462144 // else
21472145 repaint(); // start loop // may 2013
21482146 }
....@@ -2269,7 +2267,7 @@
22692267
22702268 void ToggleRandom()
22712269 {
2272
- RANDOM ^= true;
2270
+ SWITCH ^= true;
22732271 }
22742272
22752273 void ToggleHandles()
....@@ -8024,7 +8022,7 @@
80248022 }
80258023 }
80268024
8027
- /*boolean*/ public void BindTextures(cTexture tex, int resolution) // INTERFACE
8025
+ /*boolean*/ public void BindTextures(cTexture tex, int resolution) throws Exception // INTERFACE
80288026 {
80298027 if (// DrawMode() != 0 || /*tex == null ||*/
80308028 ambientOcclusion ) // || !textureon)
....@@ -8069,7 +8067,7 @@
80698067 return; // true;
80708068 }
80718069
8072
- CacheTexture GetCacheTexture(String tex, boolean bump, int resolution)
8070
+ CacheTexture GetCacheTexture(String tex, boolean bump, int resolution) throws Exception
80738071 {
80748072 CacheTexture/*com.sun.opengl.util.texture.Texture*/ texture = null;
80758073
....@@ -8077,12 +8075,16 @@
80778075 {
80788076 String texname = tex;
80798077
8080
- String[] split = tex.split("Textures");
8081
- if (split.length > 1)
8082
- texname = "/Users/nbriere/Textures" + split[split.length-1];
8083
- else
8084
- if (!texname.startsWith("/"))
8085
- texname = "/Users/nbriere/Textures/" + texname;
8078
+// String[] split = tex.split("Textures");
8079
+// if (split.length > 1)
8080
+// texname = "/Users/nbriere/Textures" + split[split.length-1];
8081
+// else
8082
+// if (!texname.startsWith("/"))
8083
+// texname = "/Users/nbriere/Textures/" + texname;
8084
+ if (!new File(tex).exists())
8085
+ {
8086
+ texname = javax.swing.filechooser.FileSystemView.getFileSystemView().getDefaultDirectory() + "/Textures/" + texname;
8087
+ }
80868088
80878089 if (CACHETEXTURE)
80888090 texture = textures.get(texname); // TEXTURE CACHE
....@@ -8182,7 +8184,9 @@
81828184 texturedata = GetFileTexture(cachename, processbump, resolution);
81838185
81848186
8185
- if (texturedata != null)
8187
+ if (texturedata == null)
8188
+ throw new Exception();
8189
+
81868190 texture = new CacheTexture(com.sun.opengl.util.texture.TextureIO.newTexture(texturedata),resolution);
81878191 //texture = GetTexture(tex, bump);
81888192 }
....@@ -8304,7 +8308,7 @@
83048308 return texture;
83058309 }
83068310
8307
- com.sun.opengl.util.texture.Texture GetTexture(String tex, boolean bump, int resolution)
8311
+ com.sun.opengl.util.texture.Texture GetTexture(String tex, boolean bump, int resolution) throws Exception
83088312 {
83098313 CacheTexture texture = GetCacheTexture(tex, bump, resolution);
83108314
....@@ -8322,14 +8326,14 @@
83228326 return texture!=null?texture.texture:null;
83238327 }
83248328
8325
- public com.sun.opengl.util.texture.TextureData GetTextureData(String tex, boolean bump, int resolution)
8329
+ public com.sun.opengl.util.texture.TextureData GetTextureData(String tex, boolean bump, int resolution) throws Exception
83268330 {
83278331 CacheTexture texture = GetCacheTexture(tex, bump, resolution);
83288332
83298333 return texture!=null?texture.texturedata:null;
83308334 }
83318335
8332
- boolean BindTexture(String tex, boolean bump, int resolution)
8336
+ boolean BindTexture(String tex, boolean bump, int resolution) throws Exception
83338337 {
83348338 if (/*tex == null ||*/ ambientOcclusion ) // || !textureon)
83358339 {
....@@ -9395,7 +9399,7 @@
93959399 //gl.glFlush();
93969400 gl.glAccum(gl.GL_ACCUM, 1.0f / ACSIZE);
93979401
9398
- if (ANIMATION && ABORTED)
9402
+ if (Globals.ANIMATION && ABORTED)
93999403 {
94009404 System.err.println(" ABORTED FRAME");
94019405 break;
....@@ -9425,7 +9429,7 @@
94259429 setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
94269430
94279431 // save image
9428
- if (ANIMATION && !ABORTED)
9432
+ if (Globals.ANIMATION && !ABORTED)
94299433 {
94309434 VPwidth = viewport[2];
94319435 VPheight = viewport[3];
....@@ -9536,11 +9540,11 @@
95369540
95379541 // imagecount++;
95389542
9539
- String fullname = filename + (i%100000)/10000 + "" + (i%10000)/1000 + "" + (i%1000)/100 + "" + (i%100)/10 + "" + (i%10) + "." + ext;
9543
+ String fullname = Globals.filename + (i%100000)/10000 + "" + (i%10000)/1000 + "" + (i%1000)/100 + "" + (i%100)/10 + "" + (i%10) + "." + ext;
95409544
95419545 if (!BOXMODE)
95429546 {
9543
- System.out.println("image: " + fullname + " (wav cursor=" + (GrafreeD.wav.cursor / 735 / 4) + ")");
9547
+ System.out.println("image: " + fullname + " (wav cursor=" + (Grafreed.wav.cursor / 735 / 4) + ")");
95449548 }
95459549
95469550 if (!BOXMODE)
....@@ -9578,7 +9582,7 @@
95789582 ABORTED = false;
95799583 }
95809584 else
9581
- GrafreeD.wav.cursor += 735 * ACSIZE;
9585
+ Grafreed.wav.cursor += 735 * ACSIZE;
95829586
95839587 if (false)
95849588 {
....@@ -10241,11 +10245,11 @@
1024110245
1024210246 public void display(GLAutoDrawable drawable)
1024310247 {
10244
- if (GrafreeD.savesound && GrafreeD.hassound)
10248
+ if (Grafreed.savesound && Grafreed.hassound)
1024510249 {
10246
- GrafreeD.wav.save();
10247
- GrafreeD.savesound = false;
10248
- GrafreeD.hassound = false;
10250
+ Grafreed.wav.save();
10251
+ Grafreed.savesound = false;
10252
+ Grafreed.hassound = false;
1024910253 }
1025010254 // if (DEBUG_SELECTION)
1025110255 // {
....@@ -10375,7 +10379,7 @@
1037510379 Object3D theobject = object;
1037610380 Object3D theparent = object.parent;
1037710381 object.parent = null;
10378
- object = (Object3D)GrafreeD.clone(object);
10382
+ object = (Object3D)Grafreed.clone(object);
1037910383 object.Stripify();
1038010384 if (theobject.selection == null || theobject.selection.Size() == 0)
1038110385 theobject.PreprocessOcclusion(this);
....@@ -10796,7 +10800,16 @@
1079610800 // Bump noise
1079710801 gl.glActiveTexture(GL.GL_TEXTURE6);
1079810802 //gl.glBindTexture(GL.GL_TEXTURE_2D, bump_noise);
10799
- BindTexture(NOISE_TEXTURE, false, 2);
10803
+
10804
+ try
10805
+ {
10806
+ BindTexture(NOISE_TEXTURE, false, 2);
10807
+ }
10808
+ catch (Exception e)
10809
+ {
10810
+ System.err.println("FAILED: " + NOISE_TEXTURE);
10811
+ }
10812
+
1080010813
1080110814 gl.glActiveTexture(GL.GL_TEXTURE0);
1080210815 gl.glEnable(GL.GL_TEXTURE_2D);
....@@ -11260,8 +11273,14 @@
1126011273 {
1126111274 renderpass++;
1126211275 // System.out.println("Draw object... ");
11276
+ STEP = 1;
1126311277 if (FAST) // in case there is no script
11264
- STEP = 16;
11278
+ STEP = 8;
11279
+
11280
+ if (CURRENTANTIALIAS == 0 || ACSIZE == 1)
11281
+ {
11282
+ STEP *= 4;
11283
+ }
1126511284
1126611285 //object.FullInvariants();
1126711286
....@@ -11275,8 +11294,8 @@
1127511294 e.printStackTrace();
1127611295 }
1127711296
11278
- if (GrafreeD.RENDERME > 0)
11279
- GrafreeD.RENDERME--; // mechante magouille
11297
+ if (Grafreed.RENDERME > 0)
11298
+ Grafreed.RENDERME--; // mechante magouille
1128011299
1128111300 Globals.ONESTEP = false;
1128211301 }
....@@ -11346,7 +11365,14 @@
1134611365
1134711366 usedtextures.clear();
1134811367
11349
- BindTextures(DEFAULT_TEXTURES, 2);
11368
+ try
11369
+ {
11370
+ BindTextures(DEFAULT_TEXTURES, 2);
11371
+ }
11372
+ catch (Exception e)
11373
+ {
11374
+ System.err.println("FAILED: " + DEFAULT_TEXTURES);
11375
+ }
1135011376 }
1135111377 //System.out.println("--> " + stackdepth);
1135211378 // GrafreeD.traceon();
....@@ -11437,7 +11463,14 @@
1143711463 if (checker != null && DrawMode() == DEFAULT)
1143811464 {
1143911465 //BindTexture(IMMORTAL_TEXTURE);
11440
- BindTextures(checker.GetTextures(), checker.texres);
11466
+ try
11467
+ {
11468
+ BindTextures(checker.GetTextures(), checker.texres);
11469
+ }
11470
+ catch (Exception e)
11471
+ {
11472
+ System.err.println("FAILED: " + checker.GetTextures());
11473
+ }
1144111474 // NEAREST
1144211475 GetGL().glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_NEAREST); // GL.GL_LINEAR);
1144311476 DrawChecker(gl);
....@@ -12599,8 +12632,10 @@
1259912632 "MAX ndotl.x, ndotl.x, -ndotl.x;" +
1260012633
1260112634 "SUB temp.x, one.x, ndotl.x;" +
12602
- "ADD temp.x, temp.x, options2.z;" + // lightsheen
12603
- "ADD temp.y, one.y, options2.y;" + // sursurface
12635
+ // Tuning for default skin
12636
+ //"ADD temp.x, temp.x, options2.z;" + // lightsheen
12637
+ "MAD temp.x, options2.z, half.y, temp.x;" + // lightsheen
12638
+ "ADD temp.y, one.y, options2.y;" + // subsurface
1260412639 "MUL temp.x, temp.x, temp.y;" +
1260512640
1260612641 "MUL saturation, saturation, temp.xxxx;" +
....@@ -12748,7 +12783,7 @@
1274812783 "MUL final.y, fragment.texcoord[0].x, c256;" +
1274912784 "FLR final.x, final.y;" +
1275012785 "SUB final.y, final.y, final.x;" +
12751
- //"MUL final.x, final.x, c256i;" +
12786
+ "MUL final.x, final.x, c256i;" +
1275212787 "MOV final.z, zero.x;" +
1275312788 "MOV final.a, one.w;":""
1275412789 ) +
....@@ -12756,7 +12791,7 @@
1275612791 "MUL final.y, fragment.texcoord[0].y, c256;" +
1275712792 "FLR final.x, final.y;" +
1275812793 "SUB final.y, final.y, final.x;" +
12759
- //"MUL final.x, final.x, c256i;" +
12794
+ "MUL final.x, final.x, c256i;" +
1276012795 "MOV final.z, zero.x;" +
1276112796 "MOV final.a, one.w;":""
1276212797 ) +
....@@ -13509,7 +13544,7 @@
1350913544 public void mousePressed(MouseEvent e)
1351013545 {
1351113546 //System.out.println("mousePressed: " + e);
13512
- clickStart(e.getX(), e.getY(), e.getModifiersEx());
13547
+ clickStart(e.getX(), e.getY(), e.getModifiers(), e.getModifiersEx());
1351313548 }
1351413549
1351513550 static long prevtime = 0;
....@@ -13585,8 +13620,8 @@
1358513620 // mode |= META;
1358613621 //}
1358713622
13588
- SetMouseMode(WHEEL | e.getModifiersEx());
13589
- drag(anchorX, anchorY + e.getUnitsToScroll()*8, 0);
13623
+ SetMouseMode(e.getModifiers(), WHEEL | e.getModifiersEx());
13624
+ drag(anchorX, anchorY + e.getUnitsToScroll()*8, 0, 0);
1359013625 anchorX = ax;
1359113626 anchorY = ay;
1359213627 prevX = px;
....@@ -13646,6 +13681,10 @@
1364613681 // wasliveok = true;
1364713682 // waslive = false;
1364813683
13684
+ // May 2019 Forget it:
13685
+ if (true)
13686
+ return;
13687
+
1364913688 // source == timer
1365013689 if (mouseDown)
1365113690 {
....@@ -13684,7 +13723,7 @@
1368413723
1368513724 javax.swing.Timer timer = new javax.swing.Timer(350, this);
1368613725
13687
- void clickStart(int x, int y, int modifiers)
13726
+ void clickStart(int x, int y, int modifiers, int modifiersex)
1368813727 {
1368913728 if (!wasliveok)
1369013729 return;
....@@ -13701,7 +13740,7 @@
1370113740 // touched = true; // main DL
1370213741 if (isRenderer)
1370313742 {
13704
- SetMouseMode(modifiers);
13743
+ SetMouseMode(modifiers, modifiersex);
1370513744 }
1370613745
1370713746 selectX = anchorX = x;
....@@ -13714,7 +13753,7 @@
1371413753 clicked = true;
1371513754 hold = false;
1371613755
13717
- if (((modifiers & ~1024) & ~0) == 0) // Single or multiple selection
13756
+ if (((modifiersex & ~1024) & ~0) == 0) // Single or multiple selection
1371813757 // june 2013 means CTRL_CLICK: if (((modifiers & ~1024) & ~128) == 0) // Single or multiple selection
1371913758 {
1372013759 // System.out.println("RESTART II " + modifiers);
....@@ -13745,7 +13784,7 @@
1374513784 info.camera = renderCamera;
1374613785 info.x = x;
1374713786 info.y = y;
13748
- info.modifiers = modifiers;
13787
+ info.modifiers = modifiersex;
1374913788 editObj = object.doEditClick(info, 0);
1375013789 if (!editObj)
1375113790 {
....@@ -13774,7 +13813,7 @@
1377413813 clickEnd(e.getX(), e.getY(), e.getModifiersEx());
1377513814 }
1377613815 else
13777
- drag(e.getX(), e.getY(), e.getModifiersEx());
13816
+ drag(e.getX(), e.getY(), e.getModifiers(), e.getModifiersEx());
1377813817
1377913818 //try { Thread.sleep(1); } catch (Exception ex) {}
1378013819 }
....@@ -14011,7 +14050,7 @@
1401114050 {
1401214051 Globals.lighttouched = true;
1401314052 }
14014
- drag(X, (mouseMode != 0) ? Y : anchorY, MODIFIERS);
14053
+ drag(X, (mouseMode != 0) ? Y : anchorY, 0, MODIFIERS);
1401514054 }
1401614055 //else
1401714056 }
....@@ -14111,7 +14150,7 @@
1411114150 int X, Y;
1411214151 boolean SX, SY;
1411314152
14114
- void drag(int x, int y, int modifiers)
14153
+ void drag(int x, int y, int modifiers, int modifiersex)
1411514154 {
1411614155 if (IsFrozen())
1411714156 {
....@@ -14120,17 +14159,17 @@
1412014159
1412114160 drag = true; // NEW
1412214161
14123
- boolean continuous = (modifiers & COMMAND) == COMMAND;
14162
+ boolean continuous = (modifiersex & COMMAND) == COMMAND;
1412414163
1412514164 X = x;
1412614165 Y = y;
1412714166 // floating state for animation
14128
- MODIFIERS = modifiers;
14129
- modifiers &= ~1024;
14167
+ MODIFIERS = modifiersex;
14168
+ modifiersex &= ~1024;
1413014169 if (false) // modifiers != 0)
1413114170 {
1413214171 //new Exception().printStackTrace();
14133
- System.out.println("mouseDragged: " + modifiers);
14172
+ System.out.println("mouseDragged: " + modifiersex);
1413414173 System.out.println("SHIFT = " + SHIFT);
1413514174 System.out.println("CONTROL = " + COMMAND);
1413614175 System.out.println("META = " + META);
....@@ -14150,7 +14189,7 @@
1415014189 info.camera = renderCamera;
1415114190 info.x = x;
1415214191 info.y = y;
14153
- object.editWindow.copy.doEditDrag(info);
14192
+ object.editWindow.copy.doEditDrag(info, (modifiers & MouseEvent.BUTTON3_MASK) != 0);
1415414193 } else
1415514194 {
1415614195 if (x < startX)
....@@ -14349,9 +14388,9 @@
1434914388 boolean control = ((modifiers & CTRL) != 0); // june 2013: for point selection
1435014389 boolean command = ((modifiers & COMMAND) != 0); // june 2013: for multiple selection
1435114390
14352
- if (control || command || IsFrozen())
14391
+// No delay if (control || command || IsFrozen())
1435314392 timeout = true;
14354
- else
14393
+// ?? May 2019 else
1435514394 // timer.setDelay((modifiers & 128) != 0?0:350);
1435614395 mouseDown = false;
1435714396 if (!control && !command) // june 2013
....@@ -14461,7 +14500,7 @@
1446114500 System.out.println("keyReleased: " + e);
1446214501 }
1446314502
14464
- void SetMouseMode(int modifiers)
14503
+ void SetMouseMode(int modifiers, int modifiersex)
1446514504 {
1446614505 //System.out.println("SetMouseMode = " + modifiers);
1446714506 //modifiers &= ~1024;
....@@ -14473,25 +14512,25 @@
1447314512 //if (modifiers == 0) // || (modifiers == (1024 | CONTROL)))
1447414513 // return;
1447514514 //System.out.println("SetMode = " + modifiers);
14476
- if ((modifiers & WHEEL) == WHEEL)
14515
+ if ((modifiersex & WHEEL) == WHEEL)
1447714516 {
1447814517 mouseMode |= ZOOM;
1447914518 }
1448014519
1448114520 boolean capsLocked = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK);
14482
- if (capsLocked || (modifiers & META) == META)
14521
+ if (capsLocked) // || (modifiers & META) == META)
1448314522 {
1448414523 mouseMode |= VR; // BACKFORTH;
1448514524 }
14486
- if ((modifiers & CTRLCLICK) == CTRLCLICK)
14525
+ if ((modifiersex & CTRLCLICK) == CTRLCLICK)
1448714526 {
1448814527 mouseMode |= SELECT;
1448914528 }
14490
- if ((modifiers & COMMAND) == COMMAND)
14529
+ if ((modifiersex & COMMAND) == COMMAND)
1449114530 {
1449214531 mouseMode |= SELECT;
1449314532 }
14494
- if ((modifiers & SHIFT) == SHIFT || forcetranslate)
14533
+ if ((modifiersex & SHIFT) == SHIFT || forcetranslate || (modifiers & MouseEvent.BUTTON3_MASK) != 0)
1449514534 {
1449614535 mouseMode &= ~VR;
1449714536 mouseMode |= TRANSLATE;
....@@ -14520,7 +14559,7 @@
1452014559
1452114560 if (isRenderer) //
1452214561 {
14523
- SetMouseMode(modifiers);
14562
+ SetMouseMode(0, modifiers);
1452414563 }
1452514564
1452614565 Globals.theRenderer.keyPressed(key);
....@@ -14856,7 +14895,7 @@
1485614895 //RESIZETEXTURE ^= true;
1485714896 //break;
1485814897 case 'z':
14859
- RENDERSHADOW ^= true;
14898
+ Globals.RENDERSHADOW ^= true;
1486014899 Globals.lighttouched = true;
1486114900 repaint();
1486214901 break;
....@@ -14980,7 +15019,7 @@
1498015019 //mode = ROTATE;
1498115020 if ((MODIFIERS & COMMAND) == 0) // VR??
1498215021 {
14983
- SetMouseMode(modifiers);
15022
+ SetMouseMode(0, modifiers);
1498415023 }
1498515024 }
1498615025
....@@ -15116,7 +15155,7 @@
1511615155 {
1511715156 //System.out.println("processMouseMotionEvent: " + mouseMode + " " + e.getModifiers() + " " + e.getModifiersEx() + " " + e.getButton());
1511815157 //if (e.getButton() == MouseEvent.NOBUTTON && (mouseMode & SELECT) == 0)
15119
- if ((e.getModifiers() & MouseEvent.BUTTON1_MASK) == 0 && (mouseMode & SELECT) == 0)
15158
+ if ((e.getModifiers() & MouseEvent.BUTTON1_MASK) == 0 && (e.getModifiers() & MouseEvent.BUTTON3_MASK) == 0 && (mouseMode & SELECT) == 0)
1512015159 {
1512115160 mouseMoved(e);
1512215161 } else
....@@ -15553,6 +15592,7 @@
1555315592 public boolean mouseDown(Event evt, int x, int y)
1555415593 {
1555515594 System.out.println("mouseDown: " + evt);
15595
+ System.exit(0);
1555615596 /*
1555715597 locked = true;
1555815598 drag = false;
....@@ -15596,7 +15636,7 @@
1559615636 {
1559715637 keyPressed(0, modifiers);
1559815638 }
15599
- clickStart(x, y, modifiers);
15639
+ // clickStart(x, y, modifiers);
1560015640 return true;
1560115641 }
1560215642
....@@ -15714,7 +15754,7 @@
1571415754 {
1571515755 keyReleased(0, 0);
1571615756 }
15717
- drag(x, y, modifiers);
15757
+ drag(x, y, 0, modifiers);
1571815758 return true;
1571915759 }
1572015760
....@@ -16412,16 +16452,16 @@
1641216452 System.out.println("; fromto " + sel + " " + Trunk(previousselectedpoint.toParent[3][0]) + " " + Trunk(previousselectedpoint.toParent[3][2]) + " " + Trunk(selectedpoint.toParent[3][0]) + " " + Trunk(selectedpoint.toParent[3][2]));
1641316453 }
1641416454
16415
- previousselectedpoint = (Sphere) GrafreeD.clone(selectedpoint);
16455
+ previousselectedpoint = (Sphere) Grafreed.clone(selectedpoint);
1641616456 }
1641716457 }
1641816458
1641916459 if (!movingcamera && !PAINTMODE)
1642016460 object.editWindow.ScreenFitPoint(); // fev 2014
1642116461
16422
- if (PAINTMODE && GrafreeD.clipboard.size() == 1) // object.editWindow.copy.selection.Size() > 0)
16462
+ if (PAINTMODE && Grafreed.clipboard.size() == 1) // object.editWindow.copy.selection.Size() > 0)
1642316463 {
16424
- Object3D paintobj = GrafreeD.clipboard.get(0); // object.editWindow.copy.selection.elementAt(0);
16464
+ Object3D paintobj = Grafreed.clipboard.get(0); // object.editWindow.copy.selection.elementAt(0);
1642516465
1642616466 Object3D group = new Object3D("inst" + paintcount++);
1642716467
....@@ -16577,7 +16617,7 @@
1657716617 gl.glDisable(gl.GL_CULL_FACE);
1657816618 }
1657916619
16580
- if (!RENDERSHADOW)
16620
+ if (!Globals.RENDERSHADOW)
1658116621 gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
1658216622
1658316623 // SB gl.glPolygonOffset(2.5f, 10);
....@@ -16587,7 +16627,7 @@
1658716627 //gl.glColorMask(false, false, false, false);
1658816628
1658916629 //render_scene_from_light_view(gl, drawable, 0, 0);
16590
- if (RENDERSHADOW && Globals.lighttouched && !movingcamera) // && !parent.IsFreezed())
16630
+ if (Globals.RENDERSHADOW && Globals.lighttouched && (!movingcamera || !Globals.FREEZEONMOVE)) // && !parent.IsFreezed())
1659116631 {
1659216632 gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
1659316633