Normand Briere
2019-05-13 f924d3e00db476c06f55f3d5aaef307e17575340
CameraPane.java
....@@ -1628,7 +1628,7 @@
16281628
16291629 cColor.HSBtoRGB(display.color, display.saturation, 1, display.modelParams0);
16301630
1631
- float[] colorV = GrafreeD.colorV;
1631
+ float[] colorV = Grafreed.colorV;
16321632
16331633 /**/
16341634 if (display.DrawMode() == display.DEFAULT) // && display.RENDERPROGRAM == 0)
....@@ -2140,7 +2140,7 @@
21402140 System.err.println("LIVE = " + Globals.isLIVE());
21412141
21422142 if (!Globals.isLIVE()) // save sound
2143
- GrafreeD.savesound = true; // wav.save();
2143
+ Grafreed.savesound = true; // wav.save();
21442144 // else
21452145 repaint(); // start loop // may 2013
21462146 }
....@@ -9542,7 +9542,7 @@
95429542
95439543 if (!BOXMODE)
95449544 {
9545
- System.out.println("image: " + fullname + " (wav cursor=" + (GrafreeD.wav.cursor / 735 / 4) + ")");
9545
+ System.out.println("image: " + fullname + " (wav cursor=" + (Grafreed.wav.cursor / 735 / 4) + ")");
95469546 }
95479547
95489548 if (!BOXMODE)
....@@ -9580,7 +9580,7 @@
95809580 ABORTED = false;
95819581 }
95829582 else
9583
- GrafreeD.wav.cursor += 735 * ACSIZE;
9583
+ Grafreed.wav.cursor += 735 * ACSIZE;
95849584
95859585 if (false)
95869586 {
....@@ -10243,11 +10243,11 @@
1024310243
1024410244 public void display(GLAutoDrawable drawable)
1024510245 {
10246
- if (GrafreeD.savesound && GrafreeD.hassound)
10246
+ if (Grafreed.savesound && Grafreed.hassound)
1024710247 {
10248
- GrafreeD.wav.save();
10249
- GrafreeD.savesound = false;
10250
- GrafreeD.hassound = false;
10248
+ Grafreed.wav.save();
10249
+ Grafreed.savesound = false;
10250
+ Grafreed.hassound = false;
1025110251 }
1025210252 // if (DEBUG_SELECTION)
1025310253 // {
....@@ -10377,7 +10377,7 @@
1037710377 Object3D theobject = object;
1037810378 Object3D theparent = object.parent;
1037910379 object.parent = null;
10380
- object = (Object3D)GrafreeD.clone(object);
10380
+ object = (Object3D)Grafreed.clone(object);
1038110381 object.Stripify();
1038210382 if (theobject.selection == null || theobject.selection.Size() == 0)
1038310383 theobject.PreprocessOcclusion(this);
....@@ -11283,8 +11283,8 @@
1128311283 e.printStackTrace();
1128411284 }
1128511285
11286
- if (GrafreeD.RENDERME > 0)
11287
- GrafreeD.RENDERME--; // mechante magouille
11286
+ if (Grafreed.RENDERME > 0)
11287
+ Grafreed.RENDERME--; // mechante magouille
1128811288
1128911289 Globals.ONESTEP = false;
1129011290 }
....@@ -13656,6 +13656,10 @@
1365613656 // wasliveok = true;
1365713657 // waslive = false;
1365813658
13659
+ // May 2019 Forget it:
13660
+ if (true)
13661
+ return;
13662
+
1365913663 // source == timer
1366013664 if (mouseDown)
1366113665 {
....@@ -14359,7 +14363,7 @@
1435914363 boolean control = ((modifiers & CTRL) != 0); // june 2013: for point selection
1436014364 boolean command = ((modifiers & COMMAND) != 0); // june 2013: for multiple selection
1436114365
14362
- if (control || command || IsFrozen())
14366
+// No delay if (control || command || IsFrozen())
1436314367 timeout = true;
1436414368 // ?? May 2019 else
1436514369 // timer.setDelay((modifiers & 128) != 0?0:350);
....@@ -14866,7 +14870,7 @@
1486614870 //RESIZETEXTURE ^= true;
1486714871 //break;
1486814872 case 'z':
14869
- RENDERSHADOW ^= true;
14873
+ Globals.RENDERSHADOW ^= true;
1487014874 Globals.lighttouched = true;
1487114875 repaint();
1487214876 break;
....@@ -16423,16 +16427,16 @@
1642316427 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]));
1642416428 }
1642516429
16426
- previousselectedpoint = (Sphere) GrafreeD.clone(selectedpoint);
16430
+ previousselectedpoint = (Sphere) Grafreed.clone(selectedpoint);
1642716431 }
1642816432 }
1642916433
1643016434 if (!movingcamera && !PAINTMODE)
1643116435 object.editWindow.ScreenFitPoint(); // fev 2014
1643216436
16433
- if (PAINTMODE && GrafreeD.clipboard.size() == 1) // object.editWindow.copy.selection.Size() > 0)
16437
+ if (PAINTMODE && Grafreed.clipboard.size() == 1) // object.editWindow.copy.selection.Size() > 0)
1643416438 {
16435
- Object3D paintobj = GrafreeD.clipboard.get(0); // object.editWindow.copy.selection.elementAt(0);
16439
+ Object3D paintobj = Grafreed.clipboard.get(0); // object.editWindow.copy.selection.elementAt(0);
1643616440
1643716441 Object3D group = new Object3D("inst" + paintcount++);
1643816442
....@@ -16588,7 +16592,7 @@
1658816592 gl.glDisable(gl.GL_CULL_FACE);
1658916593 }
1659016594
16591
- if (!RENDERSHADOW)
16595
+ if (!Globals.RENDERSHADOW)
1659216596 gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
1659316597
1659416598 // SB gl.glPolygonOffset(2.5f, 10);
....@@ -16598,7 +16602,7 @@
1659816602 //gl.glColorMask(false, false, false, false);
1659916603
1660016604 //render_scene_from_light_view(gl, drawable, 0, 0);
16601
- if (RENDERSHADOW && Globals.lighttouched && !movingcamera) // && !parent.IsFreezed())
16605
+ if (Globals.RENDERSHADOW && Globals.lighttouched && !movingcamera) // && !parent.IsFreezed())
1660216606 {
1660316607 gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
1660416608