.. | .. |
---|
335 | 335 | display.options1[2] = material.shadowbias; |
---|
336 | 336 | display.options1[3] = material.aniso; |
---|
337 | 337 | 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]); |
---|
338 | 343 | display.options2[0] = material.opacity; |
---|
339 | 344 | display.options2[1] = material.diffuse; |
---|
340 | 345 | 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]); |
---|
341 | 349 | |
---|
342 | 350 | 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]); |
---|
343 | 354 | display.options4[0] = material.cameralight/0.2f; |
---|
344 | 355 | display.options4[1] = material.subsurface; |
---|
345 | 356 | 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]); |
---|
346 | 360 | |
---|
347 | 361 | // if (display.CURRENTANTIALIAS > 0) |
---|
348 | 362 | // display.options3[3] /= 4; |
---|
.. | .. |
---|
2051 | 2065 | //System.err.println("Oeil on"); |
---|
2052 | 2066 | OEIL = true; |
---|
2053 | 2067 | if ((TRACK || SHADOWTRACK) && trackedobject != null && DrawMode() == SHADOW) // && !lightMode) |
---|
2054 | | - object.editWindow.ScreenFit(trackedobject, SHADOWTRACK && !TRACK); |
---|
| 2068 | + object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK); |
---|
2055 | 2069 | //pingthread.StepToTarget(true); |
---|
2056 | 2070 | } |
---|
2057 | 2071 | |
---|
.. | .. |
---|
9374 | 9388 | void ResetOptions() |
---|
9375 | 9389 | { |
---|
9376 | 9390 | options1[0] = 100; |
---|
9377 | | - options1[1] = 0.00001f; |
---|
9378 | | - options1[2] = 20; |
---|
| 9391 | + options1[1] = 0.025f; |
---|
| 9392 | + options1[2] = 0.01f; |
---|
9379 | 9393 | options1[3] = 0; |
---|
9380 | 9394 | options1[4] = 0; |
---|
9381 | 9395 | |
---|
9382 | 9396 | options2[0] = 0; |
---|
9383 | | - options2[1] = 1; |
---|
| 9397 | + options2[1] = 0.75f; |
---|
9384 | 9398 | options2[2] = 0; |
---|
9385 | 9399 | options2[3] = 0; |
---|
9386 | 9400 | |
---|
.. | .. |
---|
11014 | 11028 | |
---|
11015 | 11029 | gl.glMatrixMode(GL.GL_MODELVIEW); |
---|
11016 | 11030 | |
---|
11017 | | -//gl.glHint(gl.GL_POLYGON_SMOOTH_HINT, gl.GL_NICEST); |
---|
11018 | | -//gl.glEnable(gl.GL_POLYGON_SMOOTH); |
---|
11019 | | -//gl.glEnable(gl.GL_MULTISAMPLE); |
---|
| 11031 | +gl.glEnable(gl.GL_POLYGON_SMOOTH); |
---|
| 11032 | +gl.glHint(gl.GL_POLYGON_SMOOTH_HINT, gl.GL_NICEST); |
---|
| 11033 | +gl.glEnable(gl.GL_MULTISAMPLE); |
---|
11020 | 11034 | } else |
---|
11021 | 11035 | { |
---|
11022 | 11036 | //gl.glDisable(GL.GL_TEXTURE_2D); |
---|
.. | .. |
---|
11027 | 11041 | //System.out.println("BLENDING ON"); |
---|
11028 | 11042 | gl.glEnable(GL.GL_BLEND); |
---|
11029 | 11043 | gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA); |
---|
11030 | | - |
---|
| 11044 | +// gl.glBlendFunc(GL.GL_SRC_ALPHA_SATURATE, GL.GL_ONE); |
---|
11031 | 11045 | gl.glMatrixMode(gl.GL_PROJECTION); |
---|
11032 | 11046 | gl.glLoadIdentity(); |
---|
11033 | 11047 | |
---|
.. | .. |
---|
11513 | 11527 | if ((TRACK || SHADOWTRACK) || zoomonce) |
---|
11514 | 11528 | { |
---|
11515 | 11529 | if ((TRACK || SHADOWTRACK) && trackedobject != null && DrawMode() == SHADOW) // && !lightMode) |
---|
11516 | | - object.editWindow.ScreenFit(trackedobject, SHADOWTRACK && !TRACK); |
---|
| 11530 | + object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK); |
---|
11517 | 11531 | pingthread.StepToTarget(true); // true); |
---|
11518 | 11532 | // zoomonce = false; |
---|
11519 | 11533 | } |
---|
.. | .. |
---|
13361 | 13375 | "DP3 " + dest + ".z," + "normals," + "eye;" + |
---|
13362 | 13376 | "MAX " + dest + ".w," + dest + ".z," + "eps.x;" + |
---|
13363 | 13377 | //"MOV " + dest + ".w," + "normal.z;" + |
---|
13364 | | - "MUL " + dest + ".z," + "params2.w," + dest + ".x;" + |
---|
13365 | | - "MUL " + dest + ".z," + dest + ".z," + dest + ".x;" + |
---|
13366 | | - //"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 |
---|
13367 | 13382 | "POW " + dest + ".w," + dest + ".w," + dest + ".z;" + |
---|
13368 | 13383 | "RCP " + dest + ".w," + dest + ".w;" + |
---|
13369 | 13384 | //"RSQ " + dest + ".w," + dest + ".w;" + |
---|
.. | .. |
---|
13928 | 13943 | |
---|
13929 | 13944 | // fev 2014??? |
---|
13930 | 13945 | if ((TRACK || SHADOWTRACK) && trackedobject != null) // && DrawMode() == SHADOW) // && !lightMode) |
---|
13931 | | - object.editWindow.ScreenFit(trackedobject, SHADOWTRACK && !TRACK); |
---|
| 13946 | + object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK); |
---|
13932 | 13947 | pingthread.StepToTarget(true); // true); |
---|
13933 | 13948 | } |
---|
13934 | 13949 | // if (!LIVE) |
---|
.. | .. |
---|
14282 | 14297 | void GoDown(int mod) |
---|
14283 | 14298 | { |
---|
14284 | 14299 | MODIFIERS |= COMMAND; |
---|
14285 | | - /* |
---|
| 14300 | + /**/ |
---|
14286 | 14301 | if((mod&SHIFT) == SHIFT) |
---|
14287 | 14302 | manipCamera.RotatePosition(0, -speed); |
---|
14288 | 14303 | else |
---|
14289 | | - manipCamera.BackForth(0, -speed*delta, getWidth()); |
---|
14290 | | - */ |
---|
| 14304 | + manipCamera.BackForth(0, -speed*delta, 0); // getWidth()); |
---|
| 14305 | + /**/ |
---|
14291 | 14306 | if ((mod & SHIFT) == SHIFT) |
---|
14292 | 14307 | { |
---|
14293 | 14308 | mouseMode = mouseMode; // VR?? |
---|
.. | .. |
---|
14303 | 14318 | void GoUp(int mod) |
---|
14304 | 14319 | { |
---|
14305 | 14320 | MODIFIERS |= COMMAND; |
---|
14306 | | - /* |
---|
| 14321 | + /**/ |
---|
14307 | 14322 | if((mod&SHIFT) == SHIFT) |
---|
14308 | 14323 | manipCamera.RotatePosition(0, speed); |
---|
14309 | 14324 | else |
---|
14310 | | - manipCamera.BackForth(0, speed*delta, getWidth()); |
---|
14311 | | - */ |
---|
| 14325 | + manipCamera.BackForth(0, speed*delta, 0); // getWidth()); |
---|
| 14326 | + /**/ |
---|
14312 | 14327 | if ((mod & SHIFT) == SHIFT) |
---|
14313 | 14328 | { |
---|
14314 | 14329 | mouseMode = mouseMode; |
---|
.. | .. |
---|
14324 | 14339 | void GoLeft(int mod) |
---|
14325 | 14340 | { |
---|
14326 | 14341 | MODIFIERS |= COMMAND; |
---|
14327 | | - /* |
---|
| 14342 | + /**/ |
---|
14328 | 14343 | if((mod&SHIFT) == SHIFT) |
---|
14329 | | - manipCamera.RotatePosition(speed, 0); |
---|
14330 | | - else |
---|
14331 | 14344 | manipCamera.Translate(speed*delta, 0, getWidth()); |
---|
14332 | | - */ |
---|
| 14345 | + else |
---|
| 14346 | + manipCamera.RotatePosition(speed, 0); |
---|
| 14347 | + /**/ |
---|
14333 | 14348 | if ((mod & SHIFT) == SHIFT) |
---|
14334 | 14349 | { |
---|
14335 | 14350 | mouseMode = mouseMode; |
---|
.. | .. |
---|
14345 | 14360 | void GoRight(int mod) |
---|
14346 | 14361 | { |
---|
14347 | 14362 | MODIFIERS |= COMMAND; |
---|
14348 | | - /* |
---|
| 14363 | + /**/ |
---|
14349 | 14364 | if((mod&SHIFT) == SHIFT) |
---|
14350 | | - manipCamera.RotatePosition(-speed, 0); |
---|
14351 | | - else |
---|
14352 | 14365 | manipCamera.Translate(-speed*delta, 0, getWidth()); |
---|
14353 | | - */ |
---|
| 14366 | + else |
---|
| 14367 | + manipCamera.RotatePosition(-speed, 0); |
---|
| 14368 | + /**/ |
---|
14354 | 14369 | if ((mod & SHIFT) == SHIFT) |
---|
14355 | 14370 | { |
---|
14356 | 14371 | mouseMode = mouseMode; |
---|
.. | .. |
---|
14589 | 14604 | Globals.MOUSEDRAGGED = false; |
---|
14590 | 14605 | |
---|
14591 | 14606 | movingcamera = false; |
---|
14592 | | - X = Y = 0; |
---|
| 14607 | + X = 0; // getBounds().width/2; |
---|
| 14608 | + Y = 0; // getBounds().height/2; |
---|
14593 | 14609 | //System.out.println("mouseReleased: " + e); |
---|
14594 | 14610 | clickEnd(e.getX(), e.getY(), e.getModifiersEx()); |
---|
14595 | 14611 | } |
---|
.. | .. |
---|
14930 | 14946 | case 'E' : COMPACT ^= true; |
---|
14931 | 14947 | repaint(); |
---|
14932 | 14948 | break; |
---|
14933 | | - case 'W' : DEBUGHSB ^= true; |
---|
| 14949 | + case 'W' : // Wide Window (fullscreen) |
---|
| 14950 | + //DEBUGHSB ^= true; |
---|
| 14951 | + ObjEditor.theFrame.ToggleFullScreen(); |
---|
14934 | 14952 | repaint(); |
---|
14935 | 14953 | break; |
---|
14936 | 14954 | case 'u' : Udebug ^= true; Vdebug = false; NORMALdebug = false; programInitialized = false; repaint(); break; |
---|
.. | .. |
---|
14956 | 14974 | repaint(); |
---|
14957 | 14975 | break; |
---|
14958 | 14976 | case 'l': |
---|
14959 | | - lightMode ^= true; |
---|
14960 | | - Globals.lighttouched = true; |
---|
14961 | | - manipCamera = renderCamera = lightMode ? lightCamera : eyeCamera; |
---|
14962 | | - targetLookAt.set(manipCamera.lookAt); |
---|
14963 | | - repaint(); |
---|
14964 | | - break; |
---|
14965 | | - case 'L': |
---|
| 14977 | + //case 'L': |
---|
14966 | 14978 | if (lightMode) |
---|
14967 | 14979 | { |
---|
14968 | 14980 | lightMode = false; |
---|
.. | .. |
---|
15105 | 15117 | case '_': |
---|
15106 | 15118 | kompactbit = 5; |
---|
15107 | 15119 | break; |
---|
15108 | | - case '+': |
---|
15109 | | - kompactbit = 6; |
---|
15110 | | - break; |
---|
| 15120 | +// case '+': |
---|
| 15121 | +// kompactbit = 6; |
---|
| 15122 | +// break; |
---|
15111 | 15123 | case ' ': |
---|
15112 | | - ObjEditor.theFrame.ToggleFullScreen(); |
---|
| 15124 | + lightMode ^= true; |
---|
| 15125 | + Globals.lighttouched = true; |
---|
| 15126 | + manipCamera = renderCamera = lightMode ? lightCamera : eyeCamera; |
---|
| 15127 | + targetLookAt.set(manipCamera.lookAt); |
---|
15113 | 15128 | repaint(); |
---|
15114 | 15129 | break; |
---|
15115 | 15130 | //case '`' : |
---|
.. | .. |
---|
15156 | 15171 | case DELETE: |
---|
15157 | 15172 | ClearSelection(); |
---|
15158 | 15173 | break; |
---|
15159 | | - /* |
---|
15160 | 15174 | case '+': |
---|
| 15175 | + |
---|
| 15176 | + /* |
---|
15161 | 15177 | //fontsize += 1; |
---|
15162 | 15178 | bbzoom *= 2; |
---|
15163 | 15179 | repaint(); |
---|
.. | .. |
---|
15174 | 15190 | case '=': |
---|
15175 | 15191 | IncDepth(); |
---|
15176 | 15192 | //fontsize += 1; |
---|
15177 | | - object.editWindow.refreshContents(true); |
---|
| 15193 | + object.GetWindow().refreshContents(true); |
---|
15178 | 15194 | maskbit = 6; |
---|
15179 | 15195 | break; |
---|
15180 | 15196 | case '-': //if (PixelThreshold>1) PixelThreshold /= 2; |
---|
15181 | 15197 | DecDepth(); |
---|
15182 | 15198 | maskbit = 5; |
---|
15183 | 15199 | //if(fontsize > 1) fontsize -= 1; |
---|
15184 | | - if (object.editWindow == null) |
---|
15185 | | - new Exception().printStackTrace(); |
---|
15186 | | - else |
---|
15187 | | - object.editWindow.refreshContents(true); |
---|
| 15200 | +// if (object.editWindow == null) |
---|
| 15201 | +// new Exception().printStackTrace(); |
---|
| 15202 | +// else |
---|
| 15203 | + object.GetWindow().refreshContents(true); |
---|
15188 | 15204 | break; |
---|
15189 | 15205 | case '{': |
---|
15190 | 15206 | manipCamera.shaper_fovy /= 1.1; |
---|
.. | .. |
---|
15408 | 15424 | } |
---|
15409 | 15425 | */ |
---|
15410 | 15426 | |
---|
15411 | | - object.editWindow.EditSelection(false); |
---|
| 15427 | + object.GetWindow().EditSelection(false); |
---|
15412 | 15428 | } |
---|
15413 | 15429 | |
---|
15414 | 15430 | void SelectParent() |
---|
.. | .. |
---|
15425 | 15441 | { |
---|
15426 | 15442 | //selectees.remove(i); |
---|
15427 | 15443 | System.out.println("select parent of " + elem); |
---|
15428 | | - group.editWindow.Select(elem.parent.GetTreePath(), first, true); |
---|
| 15444 | + group.GetWindow().Select(elem.parent.GetTreePath(), first, true); |
---|
15429 | 15445 | } else |
---|
15430 | 15446 | { |
---|
15431 | | - group.editWindow.Select(elem.GetTreePath(), first, true); |
---|
| 15447 | + group.GetWindow().Select(elem.GetTreePath(), first, true); |
---|
15432 | 15448 | } |
---|
15433 | 15449 | |
---|
15434 | 15450 | first = false; |
---|
.. | .. |
---|
15470 | 15486 | for (int j = 0; j < group.children.size(); j++) |
---|
15471 | 15487 | { |
---|
15472 | 15488 | elem = (Object3D) group.children.elementAt(j); |
---|
15473 | | - object.editWindow.Select(elem.GetTreePath(), first, true); |
---|
| 15489 | + object.GetWindow().Select(elem.GetTreePath(), first, true); |
---|
15474 | 15490 | first = false; |
---|
15475 | 15491 | } |
---|
15476 | 15492 | } else |
---|
15477 | 15493 | { |
---|
15478 | | - object.editWindow.Select(elem.GetTreePath(), first, true); |
---|
| 15494 | + object.GetWindow().Select(elem.GetTreePath(), first, true); |
---|
15479 | 15495 | } |
---|
15480 | 15496 | |
---|
15481 | 15497 | first = false; |
---|
.. | .. |
---|
15486 | 15502 | { |
---|
15487 | 15503 | //Composite group = (Composite) object; |
---|
15488 | 15504 | Object3D group = object; |
---|
15489 | | - group.editWindow.loadClipboard(true); // ClearSelection(false); |
---|
| 15505 | + group.GetWindow().loadClipboard(true); // ClearSelection(false); |
---|
15490 | 15506 | } |
---|
15491 | 15507 | |
---|
15492 | 15508 | void ResetTransform(int mask) |
---|
15493 | 15509 | { |
---|
15494 | 15510 | //Composite group = (Composite) object; |
---|
15495 | 15511 | Object3D group = object; |
---|
15496 | | - group.editWindow.ResetTransform(mask); |
---|
| 15512 | + group.GetWindow().ResetTransform(mask); |
---|
15497 | 15513 | } |
---|
15498 | 15514 | |
---|
15499 | 15515 | void FlipTransform() |
---|
15500 | 15516 | { |
---|
15501 | 15517 | //Composite group = (Composite) object; |
---|
15502 | 15518 | Object3D group = object; |
---|
15503 | | - group.editWindow.FlipTransform(); |
---|
| 15519 | + group.GetWindow().FlipTransform(); |
---|
15504 | 15520 | // group.editWindow.ReduceMesh(true); |
---|
15505 | 15521 | } |
---|
15506 | 15522 | |
---|
.. | .. |
---|
15508 | 15524 | { |
---|
15509 | 15525 | //Composite group = (Composite) object; |
---|
15510 | 15526 | Object3D group = object; |
---|
15511 | | - group.editWindow.PrintMemory(); |
---|
| 15527 | + group.GetWindow().PrintMemory(); |
---|
15512 | 15528 | // group.editWindow.ReduceMesh(true); |
---|
15513 | 15529 | } |
---|
15514 | 15530 | |
---|
.. | .. |
---|
15516 | 15532 | { |
---|
15517 | 15533 | //Composite group = (Composite) object; |
---|
15518 | 15534 | Object3D group = object; |
---|
15519 | | - group.editWindow.ResetCentroid(); |
---|
| 15535 | + group.GetWindow().ResetCentroid(); |
---|
15520 | 15536 | } |
---|
15521 | 15537 | |
---|
15522 | 15538 | void IncDepth() |
---|
.. | .. |
---|
15692 | 15708 | info.bounds.y += (height - desired) / 2; |
---|
15693 | 15709 | } |
---|
15694 | 15710 | } |
---|
| 15711 | + |
---|
15695 | 15712 | info.g = gr; |
---|
15696 | 15713 | info.camera = renderCamera; |
---|
15697 | 15714 | /* |
---|
.. | .. |
---|
15701 | 15718 | */ |
---|
15702 | 15719 | if (!isRenderer) |
---|
15703 | 15720 | { |
---|
15704 | | - object.drawEditHandles(info, 0); |
---|
15705 | | - |
---|
15706 | | - if (drag && (X != 0 || Y != 0) && object.selection.Size() > 0) |
---|
| 15721 | + Grafreed.Assert(object != null); |
---|
| 15722 | + Grafreed.Assert(object.selection != null); |
---|
| 15723 | + if (object.selection.Size() > 0) |
---|
15707 | 15724 | { |
---|
15708 | | - switch (object.selection.get(0).hitSomething) |
---|
| 15725 | + int hitSomething = object.selection.get(0).hitSomething; |
---|
| 15726 | + |
---|
| 15727 | + info.DX = 0; |
---|
| 15728 | + info.DY = 0; |
---|
| 15729 | + info.W = 1; |
---|
| 15730 | + if (hitSomething == Object3D.hitCenter) |
---|
15709 | 15731 | { |
---|
15710 | | - case Object3D.hitCenter: gr.setColor(Color.pink); |
---|
15711 | | - gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
15712 | | - break; |
---|
15713 | | - case Object3D.hitRotate: gr.setColor(Color.yellow); |
---|
15714 | | - gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
15715 | | - break; |
---|
15716 | | - case Object3D.hitScale: gr.setColor(Color.cyan); |
---|
15717 | | - gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
15718 | | - break; |
---|
| 15732 | + info.DX = X; |
---|
| 15733 | + if (X != 0) |
---|
| 15734 | + info.DX -= info.bounds.width/2; |
---|
| 15735 | + |
---|
| 15736 | + info.DY = Y; |
---|
| 15737 | + if (Y != 0) |
---|
| 15738 | + info.DY -= info.bounds.height/2; |
---|
15719 | 15739 | } |
---|
15720 | | - |
---|
| 15740 | + |
---|
| 15741 | + object.drawEditHandles(info, 0); |
---|
| 15742 | + |
---|
| 15743 | + if (drag && (X != 0 || Y != 0)) |
---|
| 15744 | + { |
---|
| 15745 | + switch (hitSomething) |
---|
| 15746 | + { |
---|
| 15747 | + case Object3D.hitCenter: gr.setColor(Color.pink); |
---|
| 15748 | + gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
| 15749 | + break; |
---|
| 15750 | + case Object3D.hitRotate: gr.setColor(Color.yellow); |
---|
| 15751 | + gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
| 15752 | + break; |
---|
| 15753 | + case Object3D.hitScale: gr.setColor(Color.cyan); |
---|
| 15754 | + gr.drawLine(X, Y, info.bounds.width/2, info.bounds.height/2); |
---|
| 15755 | + break; |
---|
| 15756 | + } |
---|
| 15757 | + |
---|
| 15758 | + } |
---|
15721 | 15759 | } |
---|
15722 | 15760 | } |
---|
15723 | 15761 | } |
---|
.. | .. |
---|
16708 | 16746 | } |
---|
16709 | 16747 | |
---|
16710 | 16748 | if (!movingcamera && !PAINTMODE) |
---|
16711 | | - object.editWindow.ScreenFitPoint(); // fev 2014 |
---|
| 16749 | + object.GetWindow().ScreenFitPoint(); // fev 2014 |
---|
16712 | 16750 | |
---|
16713 | 16751 | if (PAINTMODE && Grafreed.clipboard.size() == 1) // object.editWindow.copy.selection.Size() > 0) |
---|
16714 | 16752 | { |
---|
.. | .. |
---|
16720 | 16758 | |
---|
16721 | 16759 | group.add(paintobj); // link |
---|
16722 | 16760 | |
---|
16723 | | - object.editWindow.SnapObject(group); |
---|
| 16761 | + object.GetWindow().SnapObject(group); |
---|
16724 | 16762 | |
---|
16725 | | - Object3D folder = object.editWindow.copy; |
---|
| 16763 | + Object3D folder = object.GetWindow().copy; |
---|
16726 | 16764 | |
---|
16727 | | - if (object.editWindow.copy.selection.Size() > 0) |
---|
16728 | | - folder = object.editWindow.copy.selection.elementAt(0); |
---|
| 16765 | + if (object.GetWindow().copy.selection.Size() > 0) |
---|
| 16766 | + folder = object.GetWindow().copy.selection.elementAt(0); |
---|
16729 | 16767 | |
---|
16730 | 16768 | folder.add(group); |
---|
16731 | 16769 | |
---|
16732 | | - object.editWindow.ResetModel(); |
---|
16733 | | - object.editWindow.refreshContents(); |
---|
| 16770 | + object.GetWindow().ResetModel(); |
---|
| 16771 | + object.GetWindow().refreshContents(); |
---|
16734 | 16772 | } |
---|
16735 | 16773 | else |
---|
16736 | 16774 | paintcount = 0; |
---|
.. | .. |
---|
16769 | 16807 | //System.out.println("objects[color] = " + objects[color]); |
---|
16770 | 16808 | //objects[color].Select(); |
---|
16771 | 16809 | indexcount = 0; |
---|
| 16810 | + ObjEditor window = object.GetWindow(); |
---|
| 16811 | + if (window != null && deselect) |
---|
| 16812 | + { |
---|
| 16813 | + window.Select(null, deselect, true); |
---|
| 16814 | + } |
---|
16772 | 16815 | object.Select(color, deselect); |
---|
16773 | 16816 | } |
---|
16774 | 16817 | |
---|