Normand Briere
2019-07-07 46dbce888e7c3eff8969f1ddbe22e144410b67f4
CameraPane.java
....@@ -326,7 +326,7 @@
326326 cStatic.objectstack[materialdepth++] = obj;
327327 //System.out.println("material " + material);
328328 //Applet3D.tracein(this, selected);
329
- display.vector2buffer = obj.projectedVertices;
329
+ //display.vector2buffer = obj.projectedVertices;
330330 if (obj instanceof Camera)
331331 {
332332 display.options1[0] = material.shift;
....@@ -335,14 +335,28 @@
335335 display.options1[2] = material.shadowbias;
336336 display.options1[3] = material.aniso;
337337 display.options1[4] = material.anisoV;
338
+// System.out.println("display.options1[0] " + display.options1[0]);
339
+// System.out.println("display.options1[1] " + display.options1[1]);
340
+// System.out.println("display.options1[2] " + display.options1[2]);
341
+// System.out.println("display.options1[3] " + display.options1[3]);
342
+// System.out.println("display.options1[4] " + display.options1[4]);
338343 display.options2[0] = material.opacity;
339344 display.options2[1] = material.diffuse;
340345 display.options2[2] = material.factor;
346
+// System.out.println("display.options2[0] " + display.options2[0]);
347
+// System.out.println("display.options2[1] " + display.options2[1]);
348
+// System.out.println("display.options2[2] " + display.options2[2]);
341349
342350 cColor.HSBtoRGB(material.color, material.modulation, 1, display.options3);
351
+// System.out.println("display.options3[0] " + display.options3[0]);
352
+// System.out.println("display.options3[1] " + display.options3[1]);
353
+// System.out.println("display.options3[2] " + display.options3[2]);
343354 display.options4[0] = material.cameralight/0.2f;
344355 display.options4[1] = material.subsurface;
345356 display.options4[2] = material.sheen;
357
+// System.out.println("display.options4[0] " + display.options4[0]);
358
+// System.out.println("display.options4[1] " + display.options4[1]);
359
+// System.out.println("display.options4[2] " + display.options4[2]);
346360
347361 // if (display.CURRENTANTIALIAS > 0)
348362 // display.options3[3] /= 4;
....@@ -358,7 +372,7 @@
358372 /**/
359373 } else
360374 {
361
- DrawMaterial(material, selected);
375
+ DrawMaterial(material, selected, obj.projectedVertices);
362376 }
363377 } else
364378 {
....@@ -382,8 +396,8 @@
382396 cStatic.objectstack[materialdepth++] = obj;
383397 //System.out.println("material " + material);
384398 //Applet3D.tracein("selected ", selected);
385
- display.vector2buffer = obj.projectedVertices;
386
- display.DrawMaterial(material, selected);
399
+ //display.vector2buffer = obj.projectedVertices;
400
+ display.DrawMaterial(material, selected, obj.projectedVertices);
387401 }
388402 }
389403
....@@ -400,8 +414,8 @@
400414 materialdepth -= 1;
401415 if (materialdepth > 0)
402416 {
403
- display.vector2buffer = cStatic.objectstack[materialdepth - 1].projectedVertices;
404
- display.DrawMaterial(materialstack[materialdepth - 1], selectedstack[materialdepth - 1]);
417
+ //display.vector2buffer = cStatic.objectstack[materialdepth - 1].projectedVertices;
418
+ display.DrawMaterial(materialstack[materialdepth - 1], selectedstack[materialdepth - 1], cStatic.objectstack[materialdepth - 1].projectedVertices);
405419 }
406420 //Applet3D.traceout("selected ", (stackdepth>0)?selectedstack[stackdepth-1]:"???");
407421 } else if (selected && CameraPane.flash && obj.GetMaterial() != null)
....@@ -421,8 +435,8 @@
421435 materialdepth -= 1;
422436 if (materialdepth > 0)
423437 {
424
- display.vector2buffer = cStatic.objectstack[materialdepth - 1].projectedVertices;
425
- display.DrawMaterial(materialstack[materialdepth - 1], selectedstack[materialdepth - 1]);
438
+ //display.vector2buffer = cStatic.objectstack[materialdepth - 1].projectedVertices;
439
+ display.DrawMaterial(materialstack[materialdepth - 1], selectedstack[materialdepth - 1], cStatic.objectstack[materialdepth - 1].projectedVertices);
426440 }
427441 //Applet3D.traceout("selected ", (stackdepth>0)?selectedstack[stackdepth-1]:"???");
428442 //else
....@@ -1610,7 +1624,7 @@
16101624 // gl.glMaterialfv(gl.GL_BACK, gl.GL_DIFFUSE, colorV, 0);
16111625 }
16121626
1613
- void DrawMaterial(cMaterial material, boolean selected)
1627
+ void DrawMaterial(cMaterial material, boolean selected, Object3D.cVector2[] others)
16141628 {
16151629 CameraPane display = this;
16161630 //new Exception().printStackTrace();
....@@ -1645,7 +1659,7 @@
16451659 colorV[0] = display.modelParams0[0] * material.diffuse;
16461660 colorV[1] = display.modelParams0[1] * material.diffuse;
16471661 colorV[2] = display.modelParams0[2] * material.diffuse;
1648
- colorV[3] = material.opacity;
1662
+ colorV[3] = 1; // material.opacity;
16491663
16501664 gl.glColor4f(colorV[0], colorV[1], colorV[2], material.opacity);
16511665 //System.out.println("Opacity = " + opacity);
....@@ -1753,9 +1767,9 @@
17531767 display.modelParams7[2] = 0;
17541768 display.modelParams7[3] = 0;
17551769
1756
- display.modelParams6[0] = 100; // criss de bug de bump
1770
+ //display.modelParams6[0] = 100; // criss de bug de bump
17571771
1758
- Object3D.cVector2[] extparams = display.vector2buffer;
1772
+ Object3D.cVector2[] extparams = others; // display.vector2buffer;
17591773 if (extparams != null && extparams.length > 0 && extparams[0] != null)
17601774 {
17611775 display.modelParams6[0] = extparams[0].x / 1000.0f; // bump
....@@ -2051,7 +2065,7 @@
20512065 //System.err.println("Oeil on");
20522066 OEIL = true;
20532067 if ((TRACK || SHADOWTRACK) && trackedobject != null && DrawMode() == SHADOW) // && !lightMode)
2054
- object.editWindow.ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
2068
+ object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
20552069 //pingthread.StepToTarget(true);
20562070 }
20572071
....@@ -9366,11 +9380,35 @@
93669380 jy8[3] = 0.5f;
93679381 }
93689382
9369
- float[] options1 = new float[]{1000, 0.00001f, 20, 0, 0}; // focus, aperture, Shadow blur, aniso, anisoV
9383
+ float[] options1 = new float[]{100, 0.00001f, 20, 0, 0}; // focus, aperture, Shadow blur, aniso, anisoV
93709384 float[] options2 = new float[]{0, 1, 0, 0}; // fog density, intensity, elevation
93719385 float[] options3 = new float[]{1, 1, 1, 0}; // fog color
93729386 float[] options4 = new float[]{1, 0, 1, 0}; // image intensity, subsurface, lightsheen
93739387
9388
+ void ResetOptions()
9389
+ {
9390
+ options1[0] = 100;
9391
+ options1[1] = 0.025f;
9392
+ options1[2] = 0.01f;
9393
+ options1[3] = 0;
9394
+ options1[4] = 0;
9395
+
9396
+ options2[0] = 0;
9397
+ options2[1] = 0.75f;
9398
+ options2[2] = 0;
9399
+ options2[3] = 0;
9400
+
9401
+ options3[0] = 1;
9402
+ options3[1] = 1;
9403
+ options3[2] = 1;
9404
+ options3[3] = 0;
9405
+
9406
+ options4[0] = 1;
9407
+ options4[1] = 0;
9408
+ options4[2] = 1;
9409
+ options4[3] = 0;
9410
+ }
9411
+
93749412 static int imagecount = 0; // movie generation
93759413
93769414 static int jitter = 0;
....@@ -10481,6 +10519,7 @@
1048110519 ANTIALIAS = 0;
1048210520 //System.out.println("RESTART");
1048310521 AAtimer.restart();
10522
+ Globals.TIMERRUNNING = true;
1048410523 }
1048510524 }
1048610525 }
....@@ -10548,7 +10587,8 @@
1054810587 ambientOcclusion = false;
1054910588 }
1055010589
10551
- if (Globals.lighttouched && DrawMode() == DEFAULT) // && !lightMode) // && !FROZEN)
10590
+ if (//Globals.lighttouched &&
10591
+ DrawMode() == DEFAULT) // && !lightMode) // && !FROZEN)
1055210592 {
1055310593 //if (RENDERSHADOW) // ?
1055410594 if (!IsFrozen())
....@@ -11458,7 +11498,7 @@
1145811498
1145911499 static boolean zoomonce = false;
1146011500
11461
- void CreateSelectedPoint()
11501
+ static void CreateSelectedPoint()
1146211502 {
1146311503 if (selectedpoint == null)
1146411504 {
....@@ -11478,13 +11518,16 @@
1147811518
1147911519 void DrawObject(GL gl, boolean draw)
1148011520 {
11521
+ // To clear camera values
11522
+ ResetOptions();
11523
+
1148111524 //System.out.println("DRAW OBJECT " + mouseDown);
1148211525 // DrawMode() = SELECTION;
1148311526 //GL gl = getGL();
1148411527 if ((TRACK || SHADOWTRACK) || zoomonce)
1148511528 {
1148611529 if ((TRACK || SHADOWTRACK) && trackedobject != null && DrawMode() == SHADOW) // && !lightMode)
11487
- object.editWindow.ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
11530
+ object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
1148811531 pingthread.StepToTarget(true); // true);
1148911532 // zoomonce = false;
1149011533 }
....@@ -12045,7 +12088,7 @@
1204512088 for (int i = tp.size(); --i >= 0;)
1204612089 {
1204712090 //for (int count = tp.get(i).GetTransformCount(); --count>=0;)
12048
- LA.xformPos(light, tp.get(i).GlobalTransform(), light);
12091
+ LA.xformPos(light, tp.get(i).GlobalTransformInv(), light);
1204912092 }
1205012093
1205112094
....@@ -13315,7 +13358,8 @@
1331513358 /*static*/ float[] modelParams5 = new float[]{0, 0, 0, 0}; // texture, opacity, fakedepth, shadowbias
1331613359 /*static*/ float[] modelParams6 = new float[]{0, 0, 0, 0}; // bump, noise, borderfade, fog punchthrough
1331713360 /*static*/ float[] modelParams7 = new float[]{0, 0, 0, 0}; // noise power, opacity power
13318
- Object3D.cVector2[] vector2buffer;
13361
+
13362
+ //Object3D.cVector2[] vector2buffer;
1331913363
1332013364 // IN : ndotl, ndoth, xxx, NdotL //, snininess, lightarea
1332113365 // OUT : diff, spec
....@@ -13331,9 +13375,10 @@
1333113375 "DP3 " + dest + ".z," + "normals," + "eye;" +
1333213376 "MAX " + dest + ".w," + dest + ".z," + "eps.x;" +
1333313377 //"MOV " + dest + ".w," + "normal.z;" +
13334
- "MUL " + dest + ".z," + "params2.w," + dest + ".x;" +
13335
- "MUL " + dest + ".z," + dest + ".z," + dest + ".x;" +
13336
- //"MOV " + dest + ".z," + "params2.w;" +
13378
+// "MUL " + dest + ".z," + "params2.w," + dest + ".x;" + // PRETTY HEURISTIC FOR VELVET
13379
+// "MUL " + dest + ".z," + dest + ".z," + dest + ".x;" +
13380
+
13381
+ "MOV " + dest + ".z," + "params2.w;" + // EXACT
1333713382 "POW " + dest + ".w," + dest + ".w," + dest + ".z;" +
1333813383 "RCP " + dest + ".w," + dest + ".w;" +
1333913384 //"RSQ " + dest + ".w," + dest + ".w;" +
....@@ -13838,6 +13883,7 @@
1383813883 else
1383913884 if (evt.getSource() == AAtimer)
1384013885 {
13886
+ Globals.TIMERRUNNING = false;
1384113887 if (mouseDown)
1384213888 {
1384313889 //new Exception().printStackTrace();
....@@ -13897,7 +13943,7 @@
1389713943
1389813944 // fev 2014???
1389913945 if ((TRACK || SHADOWTRACK) && trackedobject != null) // && DrawMode() == SHADOW) // && !lightMode)
13900
- object.editWindow.ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
13946
+ object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
1390113947 pingthread.StepToTarget(true); // true);
1390213948 }
1390313949 // if (!LIVE)
....@@ -13912,6 +13958,7 @@
1391213958 return;
1391313959
1391413960 AAtimer.restart(); //
13961
+ Globals.TIMERRUNNING = true;
1391513962
1391613963 // waslive = LIVE;
1391713964 // LIVE = false;
....@@ -14375,7 +14422,8 @@
1437514422 info.camera = renderCamera;
1437614423 info.x = x;
1437714424 info.y = y;
14378
- object.editWindow.copy.doEditDrag(info, (modifiers & MouseEvent.BUTTON3_MASK) != 0);
14425
+ object.GetWindow().copy
14426
+ .doEditDrag(info, (modifiers & MouseEvent.BUTTON3_MASK) != 0);
1437914427 } else
1438014428 {
1438114429 if (x < startX)
....@@ -14539,7 +14587,9 @@
1453914587 ci.camera = renderCamera;
1454014588 if (!isRenderer)
1454114589 {
14542
- if (object.editWindow.copy.doEditClick(ci, 0))
14590
+ //ObjEditor editWindow = object.editWindow;
14591
+ //Object3D copy = editWindow.copy;
14592
+ if (object.doEditClick(ci, 0))
1454314593 {
1454414594 setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
1454514595 } else
....@@ -14554,7 +14604,8 @@
1455414604 Globals.MOUSEDRAGGED = false;
1455514605
1455614606 movingcamera = false;
14557
- X = Y = 0;
14607
+ X = 0; // getBounds().width/2;
14608
+ Y = 0; // getBounds().height/2;
1455814609 //System.out.println("mouseReleased: " + e);
1455914610 clickEnd(e.getX(), e.getY(), e.getModifiersEx());
1456014611 }
....@@ -15070,9 +15121,9 @@
1507015121 case '_':
1507115122 kompactbit = 5;
1507215123 break;
15073
- case '+':
15074
- kompactbit = 6;
15075
- break;
15124
+// case '+':
15125
+// kompactbit = 6;
15126
+// break;
1507615127 case ' ':
1507715128 ObjEditor.theFrame.ToggleFullScreen();
1507815129 repaint();
....@@ -15121,8 +15172,9 @@
1512115172 case DELETE:
1512215173 ClearSelection();
1512315174 break;
15124
- /*
1512515175 case '+':
15176
+
15177
+ /*
1512615178 //fontsize += 1;
1512715179 bbzoom *= 2;
1512815180 repaint();
....@@ -15139,17 +15191,17 @@
1513915191 case '=':
1514015192 IncDepth();
1514115193 //fontsize += 1;
15142
- object.editWindow.refreshContents(true);
15194
+ object.GetWindow().refreshContents(true);
1514315195 maskbit = 6;
1514415196 break;
1514515197 case '-': //if (PixelThreshold>1) PixelThreshold /= 2;
1514615198 DecDepth();
1514715199 maskbit = 5;
1514815200 //if(fontsize > 1) fontsize -= 1;
15149
- if (object.editWindow == null)
15150
- new Exception().printStackTrace();
15151
- else
15152
- object.editWindow.refreshContents(true);
15201
+// if (object.editWindow == null)
15202
+// new Exception().printStackTrace();
15203
+// else
15204
+ object.GetWindow().refreshContents(true);
1515315205 break;
1515415206 case '{':
1515515207 manipCamera.shaper_fovy /= 1.1;
....@@ -15373,7 +15425,7 @@
1537315425 }
1537415426 */
1537515427
15376
- object.editWindow.EditSelection();
15428
+ object.GetWindow().EditSelection(false);
1537715429 }
1537815430
1537915431 void SelectParent()
....@@ -15390,10 +15442,10 @@
1539015442 {
1539115443 //selectees.remove(i);
1539215444 System.out.println("select parent of " + elem);
15393
- group.editWindow.Select(elem.parent.GetTreePath(), first, true);
15445
+ group.GetWindow().Select(elem.parent.GetTreePath(), first, true);
1539415446 } else
1539515447 {
15396
- group.editWindow.Select(elem.GetTreePath(), first, true);
15448
+ group.GetWindow().Select(elem.GetTreePath(), first, true);
1539715449 }
1539815450
1539915451 first = false;
....@@ -15435,12 +15487,12 @@
1543515487 for (int j = 0; j < group.children.size(); j++)
1543615488 {
1543715489 elem = (Object3D) group.children.elementAt(j);
15438
- object.editWindow.Select(elem.GetTreePath(), first, true);
15490
+ object.GetWindow().Select(elem.GetTreePath(), first, true);
1543915491 first = false;
1544015492 }
1544115493 } else
1544215494 {
15443
- object.editWindow.Select(elem.GetTreePath(), first, true);
15495
+ object.GetWindow().Select(elem.GetTreePath(), first, true);
1544415496 }
1544515497
1544615498 first = false;
....@@ -15451,21 +15503,21 @@
1545115503 {
1545215504 //Composite group = (Composite) object;
1545315505 Object3D group = object;
15454
- group.editWindow.loadClipboard(true); // ClearSelection(false);
15506
+ group.GetWindow().loadClipboard(true); // ClearSelection(false);
1545515507 }
1545615508
1545715509 void ResetTransform(int mask)
1545815510 {
1545915511 //Composite group = (Composite) object;
1546015512 Object3D group = object;
15461
- group.editWindow.ResetTransform(mask);
15513
+ group.GetWindow().ResetTransform(mask);
1546215514 }
1546315515
1546415516 void FlipTransform()
1546515517 {
1546615518 //Composite group = (Composite) object;
1546715519 Object3D group = object;
15468
- group.editWindow.FlipTransform();
15520
+ group.GetWindow().FlipTransform();
1546915521 // group.editWindow.ReduceMesh(true);
1547015522 }
1547115523
....@@ -15473,7 +15525,7 @@
1547315525 {
1547415526 //Composite group = (Composite) object;
1547515527 Object3D group = object;
15476
- group.editWindow.PrintMemory();
15528
+ group.GetWindow().PrintMemory();
1547715529 // group.editWindow.ReduceMesh(true);
1547815530 }
1547915531
....@@ -15481,7 +15533,7 @@
1548115533 {
1548215534 //Composite group = (Composite) object;
1548315535 Object3D group = object;
15484
- group.editWindow.ResetCentroid();
15536
+ group.GetWindow().ResetCentroid();
1548515537 }
1548615538
1548715539 void IncDepth()
....@@ -15666,23 +15718,42 @@
1566615718 */
1566715719 if (!isRenderer)
1566815720 {
15669
- object.drawEditHandles(info, 0);
15670
-
15671
- if (drag && (X != 0 || Y != 0) && object.selection.Size() > 0)
15721
+ if (object.selection.Size() > 0)
1567215722 {
15673
- switch (object.selection.get(0).hitSomething)
15723
+ int hitSomething = object.selection.get(0).hitSomething;
15724
+
15725
+ info.DX = 0;
15726
+ info.DY = 0;
15727
+ info.W = 1;
15728
+ if (hitSomething == Object3D.hitCenter)
1567415729 {
15675
- case Object3D.hitCenter: gr.setColor(Color.pink);
15676
- gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
15677
- break;
15678
- case Object3D.hitRotate: gr.setColor(Color.yellow);
15679
- gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
15680
- break;
15681
- case Object3D.hitScale: gr.setColor(Color.cyan);
15682
- gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
15683
- break;
15730
+ info.DX = X;
15731
+ if (X != 0)
15732
+ info.DX -= info.bounds.width/2;
15733
+
15734
+ info.DY = Y;
15735
+ if (Y != 0)
15736
+ info.DY -= info.bounds.height/2;
1568415737 }
15685
-
15738
+
15739
+ object.drawEditHandles(info, 0);
15740
+
15741
+ if (drag && (X != 0 || Y != 0))
15742
+ {
15743
+ switch (hitSomething)
15744
+ {
15745
+ case Object3D.hitCenter: gr.setColor(Color.pink);
15746
+ gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
15747
+ break;
15748
+ case Object3D.hitRotate: gr.setColor(Color.yellow);
15749
+ gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
15750
+ break;
15751
+ case Object3D.hitScale: gr.setColor(Color.cyan);
15752
+ gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2);
15753
+ break;
15754
+ }
15755
+
15756
+ }
1568615757 }
1568715758 }
1568815759 }
....@@ -16385,16 +16456,16 @@
1638516456 cStatic.objectstack[materialdepth++] = checker;
1638616457 //System.out.println("material " + material);
1638716458 //Applet3D.tracein(this, selected);
16388
- vector2buffer = checker.projectedVertices;
16459
+ //vector2buffer = checker.projectedVertices;
1638916460
1639016461 //checker.GetMaterial().Draw(this, false); // true);
16391
- DrawMaterial(checker.GetMaterial(), false); // true);
16462
+ DrawMaterial(checker.GetMaterial(), false, checker.projectedVertices); // true);
1639216463
1639316464 materialdepth -= 1;
1639416465 if (materialdepth > 0)
1639516466 {
16396
- vector2buffer = cStatic.objectstack[materialdepth - 1].projectedVertices;
16397
- DrawMaterial(materialstack[materialdepth - 1], selectedstack[materialdepth - 1]);
16467
+ //vector2buffer = cStatic.objectstack[materialdepth - 1].projectedVertices;
16468
+ DrawMaterial(materialstack[materialdepth - 1], selectedstack[materialdepth - 1], cStatic.objectstack[materialdepth - 1].projectedVertices);
1639816469 }
1639916470 //checker.GetMaterial().opacity = 1f;
1640016471 ////checker.GetMaterial().ambient = 1f;
....@@ -16618,6 +16689,8 @@
1661816689 // System.err.println("view = " + view[8] + " " + view[9] + " " + view[10] + " " + view[11]);
1661916690 // System.err.println("view = " + view[12] + " " + view[13] + " " + view[14] + " " + view[15]);
1662016691
16692
+ CreateSelectedPoint();
16693
+
1662116694 // Will fit the mesh !!!
1662216695 selectedpoint.toParent[0][0] = 0.0001;
1662316696 selectedpoint.toParent[1][1] = 0.0001;
....@@ -16671,7 +16744,7 @@
1667116744 }
1667216745
1667316746 if (!movingcamera && !PAINTMODE)
16674
- object.editWindow.ScreenFitPoint(); // fev 2014
16747
+ object.GetWindow().ScreenFitPoint(); // fev 2014
1667516748
1667616749 if (PAINTMODE && Grafreed.clipboard.size() == 1) // object.editWindow.copy.selection.Size() > 0)
1667716750 {
....@@ -16683,17 +16756,17 @@
1668316756
1668416757 group.add(paintobj); // link
1668516758
16686
- object.editWindow.SnapObject(group);
16759
+ object.GetWindow().SnapObject(group);
1668716760
16688
- Object3D folder = object.editWindow.copy;
16761
+ Object3D folder = object.GetWindow().copy;
1668916762
16690
- if (object.editWindow.copy.selection.Size() > 0)
16691
- folder = object.editWindow.copy.selection.elementAt(0);
16763
+ if (object.GetWindow().copy.selection.Size() > 0)
16764
+ folder = object.GetWindow().copy.selection.elementAt(0);
1669216765
1669316766 folder.add(group);
1669416767
16695
- object.editWindow.ResetModel();
16696
- object.editWindow.refreshContents();
16768
+ object.GetWindow().ResetModel();
16769
+ object.GetWindow().refreshContents();
1669716770 }
1669816771 else
1669916772 paintcount = 0;
....@@ -16732,6 +16805,11 @@
1673216805 //System.out.println("objects[color] = " + objects[color]);
1673316806 //objects[color].Select();
1673416807 indexcount = 0;
16808
+ ObjEditor window = object.GetWindow();
16809
+ if (window != null && deselect)
16810
+ {
16811
+ window.Select(null, deselect, true);
16812
+ }
1673516813 object.Select(color, deselect);
1673616814 }
1673716815