From 44b1501b5c4cd60ea67cc3d0971ed53f53b594e6 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 05 May 2019 10:19:33 -0400 Subject: [PATCH] Support for right click. --- GroupEditor.java | 293 ++++++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 191 insertions(+), 102 deletions(-) diff --git a/GroupEditor.java b/GroupEditor.java index 93258aa..a0702c4 100644 --- a/GroupEditor.java +++ b/GroupEditor.java @@ -150,6 +150,8 @@ void SetupMenu2(ObjEditor oe) { + if (Globals.ADVANCED) + { oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest")); //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection")); //cameraMenu.add(switchItem = new MenuItem("Reverse View")); @@ -161,17 +163,21 @@ lookAtItem.addActionListener(this); //lookFromItem.addActinoListener(this); //switchItem.addActionListener(this); + } + Menu menu; oe.menuBar.add(menu = new Menu("Edit")); //editItem = menu.add(new MenuItem("Edit")); //editItem.addActionListener(this); duplicateItem = menu.add(new MenuItem("Duplicate")); duplicateItem.addActionListener(this); - menu.add("-"); cloneItem = menu.add(new MenuItem("Clone")); cloneItem.addActionListener(this); + if (Globals.ADVANCED) + { cloneSupportItem = menu.add(new MenuItem("Clone (+supports)")); cloneSupportItem.addActionListener(this); + } menu.add("-"); cutItem = menu.add(new MenuItem("Cut")); cutItem.addActionListener(this); @@ -179,18 +185,31 @@ copyItem.addActionListener(this); pasteItem = menu.add(new MenuItem("Paste")); pasteItem.addActionListener(this); + menu.add("-"); + + menu.add("-"); + pasteIntoItem = menu.add(new MenuItem("Paste into")); + pasteIntoItem.addActionListener(this); pasteLinkItem = menu.add(new MenuItem("Paste link")); pasteLinkItem.addActionListener(this); pasteCloneItem = menu.add(new MenuItem("Paste clone")); pasteCloneItem.addActionListener(this); // pasteExpandItem = menu.add(new MenuItem("Paste expand")); // pasteExpandItem.addActionListener(this); + menu.add("-"); clearItem = menu.add(new MenuItem("Clear")); clearItem.addActionListener(this); + + if (Globals.ADVANCED) + { + // Deletes the cameras... clearAllItem = menu.add(new MenuItem("Clear All")); clearAllItem.addActionListener(this); + } oe.menuBar.add(menu = new Menu("Setting")); + if (Globals.ADVANCED) + { resetMeshItem = menu.add(new MenuItem("Reset All")); resetMeshItem.addActionListener(this); stepAllItem = menu.add(new MenuItem("Step All")); @@ -200,6 +219,7 @@ resetreferencesItem = menu.add(new MenuItem("Reset Mesh References")); resetreferencesItem.addActionListener(this); menu.add("-"); + } overwriteGeoItem = menu.add(new MenuItem("Overwrite Geometry")); overwriteGeoItem.addActionListener(this); overwriteMatItem = menu.add(new MenuItem("Overwrite Material")); @@ -211,19 +231,26 @@ overwriteUVItem = menu.add(new MenuItem("Overwrite UV")); overwriteUVItem.addActionListener(this); menu.add("-"); + if (Globals.ADVANCED) + { generateMeshItem = menu.add(new MenuItem("Generate Meshes")); generateMeshItem.addActionListener(this); poseMeshItem = menu.add(new MenuItem("Set Pose Meshes")); poseMeshItem.addActionListener(this); menu.add("-"); + } resetsupportItem = menu.add(new MenuItem("Reset support")); resetsupportItem.addActionListener(this); linkverticesItem = menu.add(new MenuItem("Link to Support")); linkverticesItem.addActionListener(this); relinkverticesItem = menu.add(new MenuItem("Re-link to Support")); relinkverticesItem.addActionListener(this); + + if (Globals.ADVANCED) + { setMasterItem = menu.add(new MenuItem("Set Master Mesh")); setMasterItem.addActionListener(this); + } oe.menuBar.add(menu = new Menu("Group")); grabItem = menu.add(new MenuItem("Grab")); @@ -234,27 +261,32 @@ frontItem.addActionListener(this); compositeItem = menu.add(new MenuItem("Composite")); compositeItem.addActionListener(this); - hideItem = menu.add(new MenuItem("Hide")); + hideItem = menu.add(new MenuItem("Hidden Group")); hideItem.addActionListener(this); ungroupItem = menu.add(new MenuItem("Ungroup")); ungroupItem.addActionListener(this); menu.add("-"); - randomItem = menu.add(new MenuItem("Random")); + randomItem = menu.add(new MenuItem("Switch node")); randomItem.addActionListener(this); - physicsItem = menu.add(new MenuItem("Physics")); - physicsItem.addActionListener(this); - frameselectorItem = menu.add(new MenuItem("Frame Selector")); - frameselectorItem.addActionListener(this); switchGeoItem = menu.add(new MenuItem("Switch Geometry")); switchGeoItem.addActionListener(this); switchTransfoItem = menu.add(new MenuItem("Switch Transform")); switchTransfoItem.addActionListener(this); - morphItem = menu.add(new MenuItem("Morph")); + morphItem = menu.add(new MenuItem("Morph Group")); morphItem.addActionListener(this); + + if (Globals.ADVANCED) + { + menu.add("-"); + physicsItem = menu.add(new MenuItem("Physics")); + physicsItem.addActionListener(this); + frameselectorItem = menu.add(new MenuItem("Frame Selector")); + frameselectorItem.addActionListener(this); scriptNodeItem = menu.add(new MenuItem("Script Node")); scriptNodeItem.addActionListener(this); cameraItem = menu.add(new MenuItem("Camera")); cameraItem.addActionListener(this); + } oe.menuBar.add(menu = new Menu("Object")); textureItem = menu.add(new MenuItem("Texture")); @@ -269,14 +301,18 @@ shadowYItem.addActionListener(this); shadowZItem = menu.add(new MenuItem("Shadow Z")); shadowZItem.addActionListener(this); + if (Globals.ADVANCED) + { + menu.add("-"); linkerItem = menu.add(new MenuItem("Linker")); linkerItem.addActionListener(this); - templateItem = menu.add(new MenuItem("Template")); - templateItem.addActionListener(this); attributeItem = menu.add(new MenuItem("Attribute")); attributeItem.addActionListener(this); + templateItem = menu.add(new MenuItem("Template")); + templateItem.addActionListener(this); pointflowItem = menu.add(new MenuItem("Point Flow")); pointflowItem.addActionListener(this); + } menu.add("-"); resetTransformItem = menu.add(new MenuItem("Reset Transform")); resetTransformItem.addActionListener(this); @@ -294,8 +330,11 @@ genNormalsCADItem.addActionListener(this); genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals")); genNormalsMESHItem.addActionListener(this); + if (Globals.ADVANCED) + { genNormalsMINEItem = menu.add(new MenuItem("My Normals")); genNormalsMINEItem.addActionListener(this); + } stripifyItem = menu.add(new MenuItem("Stripify")); stripifyItem.addActionListener(this); unstripifyItem = menu.add(new MenuItem("Unstripify")); @@ -317,10 +356,14 @@ reduce34MeshItem.addActionListener(this); increaseMeshItem = menu.add(new MenuItem("Increase mesh")); increaseMeshItem.addActionListener(this); - smoothMeshItem = menu.add(new MenuItem("Smooth mesh")); - smoothMeshItem.addActionListener(this); clipMeshItem = menu.add(new MenuItem("Clip mesh")); clipMeshItem.addActionListener(this); + + if (Globals.ADVANCED) + { + smoothMeshItem = menu.add(new MenuItem("Smooth mesh")); + smoothMeshItem.addActionListener(this); + } oe.menuBar.add(menu = new Menu("Attributes")); clearMaterialsItem = menu.add(new MenuItem("Clear Materials")); @@ -330,10 +373,13 @@ liveleavesItem.addActionListener(this); unliveleavesItem = menu.add(new MenuItem("Unlive Leaves")); unliveleavesItem.addActionListener(this); + if (Globals.ADVANCED) + { supportleavesItem = menu.add(new MenuItem("Support Leaves")); supportleavesItem.addActionListener(this); unsupportleavesItem = menu.add(new MenuItem("Unsupport Leaves")); unsupportleavesItem.addActionListener(this); + } hideleavesItem = menu.add(new MenuItem("Hide Leaves")); hideleavesItem.addActionListener(this); showleavesItem = menu.add(new MenuItem("Show Leaves")); @@ -376,6 +422,8 @@ sortbysizeItem.addActionListener(this); sortbynameItem = menu.add(new MenuItem("Sort by name")); sortbynameItem.addActionListener(this); + if (Globals.ADVANCED) + { menu.add("-"); extractGeometriesItem = menu.add(new MenuItem("Link Geometry")); extractGeometriesItem.addActionListener(this); @@ -385,20 +433,23 @@ shareGeometriesItem.addActionListener(this); mergeGeometriesItem = menu.add(new MenuItem("Merge Geometry")); mergeGeometriesItem.addActionListener(this); + } oe.menuBar.add(menu = new Menu("Insert")); buildCreateMenu(menu); - oe.menuBar.add(menu = new Menu("Include")); - importGFDItem = menu.add(new MenuItem("GrafreeD Object...")); - importGFDItem.addActionListener(this); - importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D Object...")); - importVRMLX3DItem.addActionListener(this); - importOBJItem = menu.add(new MenuItem("OBJ Object...")); + importOBJItem = menu.add(new MenuItem("OBJ file...")); importOBJItem.addActionListener(this); - import3DSItem = menu.add(new MenuItem("3DS Object...")); + menu.add("-"); + import3DSItem = menu.add(new MenuItem("3DS file...")); import3DSItem.addActionListener(this); + menu.add("-"); + importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D file...")); + importVRMLX3DItem.addActionListener(this); + menu.add("-"); + importGFDItem = menu.add(new MenuItem("GrafreeD file...")); + importGFDItem.addActionListener(this); oe.menuBar.add(menu = new Menu("Tools")); buildToolsMenu(menu); @@ -440,6 +491,14 @@ liveCB.setToolTipText("Enabled animation"); liveCB.addItemListener(this); + oe.toolbarPanel.add(oneStepButton = new cButton("Step", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); + oneStepButton.setToolTipText("Animate one step forward"); + oneStepButton.addActionListener(this); + + oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints); + fastCB.setToolTipText("Fast mode"); + fastCB.addItemListener(this); + oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints); trackCB.setToolTipText("Enable tracking"); trackCB.addItemListener(this); @@ -450,17 +509,14 @@ // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints); // screenfitpointButton.addActionListener(this); -// oe.aConstraints.gridx += 1; - oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); - snapobjectButton.addActionListener(this); - snapobjectButton.setToolTipText("Snap Object"); - oe.aConstraints.gridx += 1; - //aConstraints.gridx = 0; - //aConstraints.gridy += 1; - oe.aConstraints.weighty = 0; - oe.aConstraints.gridwidth = 1; - + if (Globals.ADVANCED) + { + oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); + snapobjectButton.addActionListener(this); + snapobjectButton.setToolTipText("Snap Object"); + } + oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); flashSelectionButton.setToolTipText("Show selection"); flashSelectionButton.addActionListener(this); @@ -504,13 +560,13 @@ uneditButton.setToolTipText("Unedit selection"); uneditButton.addActionListener(this); + commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); + allParamsButton.setToolTipText("Edit all params"); + allParamsButton.addActionListener(this); + commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); clearPanelButton.setToolTipText("Clear edit panel"); clearPanelButton.addActionListener(this); - - commandsPanel.add(allParamsButton = new cButton("A", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); - allParamsButton.setToolTipText("All params??"); - allParamsButton.addActionListener(this); commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); unselectButton.setToolTipText("Unselect"); @@ -587,43 +643,35 @@ void AddOptions(cGridBag panel) //, GridBagConstraints constraints) { - //constraints.gridx = 0; - //constraints.gridy = 0; - panel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints); - fastCB.setToolTipText("Fast mode"); - fastCB.addItemListener(this); - //constraints.gridy += 1; - panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); - supportCB.setToolTipText("Enabled rigging"); - supportCB.addItemListener(this); - - // constraints.gridy += 1; - // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints); - // localCB.addItemListener(this); - - //constraints.gridy += 1; - panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints); - crowdCB.setToolTipText("Used for crowds"); - crowdCB.addItemListener(this); - - //constraints.gridy += 1; - panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints); - smoothCB.setToolTipText("Snapping delay"); - smoothCB.addItemListener(this); - - //constraints.gridy += 1; - panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); - slowCB.setToolTipText("Smooth interpolation"); - slowCB.addItemListener(this); - //constraints.gridy += 1; panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints); boxCB.setToolTipText("Display bounding boxes"); boxCB.addItemListener(this); - //constraints.gridy += 1; + panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints); zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel"); zoomBoxCB.addItemListener(this); + if (Globals.ADVANCED) + { + panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); + supportCB.setToolTipText("Enable rigging"); + supportCB.addItemListener(this); + + // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints); + // localCB.addItemListener(this); + + panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints); + crowdCB.setToolTipText("Used for crowds"); + crowdCB.addItemListener(this); + + panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints); + smoothCB.setToolTipText("Snapping delay"); + smoothCB.addItemListener(this); + + panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); + slowCB.setToolTipText("Smooth interpolation"); + slowCB.addItemListener(this); + // constraints.gridy += 1; // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints); // speakerMocapCB.addItemListener(this); @@ -648,14 +696,14 @@ //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints); // debugCB.addItemListener(this); - //constraints.gridy += 1; panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints); oeilCB.addItemListener(this); - //constraints.gridy += 1; panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints); lookAtCB.setToolTipText("Look-at target"); lookAtCB.addItemListener(this); + + } cGridBag fill = new cGridBag(); @@ -892,7 +940,9 @@ // objEditor.DropFile((java.io.File[]) object, true); // return; // } - if (string.charAt(0) == '/') + + // File path for Mac and Windows + if (string.charAt(0) == '/' || string.charAt(1) == ':') { // file(s) String[] names = string.split("\n"); @@ -919,7 +969,7 @@ flashIt = false; CameraPane pane = (CameraPane) target; - pane.clickStart(objEditor.location.x, objEditor.location.y, 0); + pane.clickStart(objEditor.location.x, objEditor.location.y, 0, 0); pane.clickEnd(objEditor.location.x, objEditor.location.y, 0, true); if (group.selection.size() == 1) @@ -946,11 +996,11 @@ { loadClipboard(true); objEditor.jTree.setSelectionPath(destinationPath); - pasteInto(false); + pasteInto(false, false); } else { loadClipboard(false); objEditor.jTree.setSelectionPath(destinationPath); - pasteInto(false); // true); // ??? + pasteInto(false, false); // true); // ??? } } public void dropActionChanged(DropTargetDragEvent dtde) @@ -1072,27 +1122,33 @@ kleinItem.addActionListener(this); particleItem = menu.add(new MenuItem("Particle system")); particleItem.addActionListener(this); + if (Globals.ADVANCED) + { ragdollItem = menu.add(new MenuItem("Rag Walk")); ragdollItem.addActionListener(this); ragdoll2Item = menu.add(new MenuItem("Rag Fall")); ragdoll2Item.addActionListener(this); + } menu.add("-"); - meshItem = menu.add(new MenuItem("Mesh")); + meshItem = menu.add(new MenuItem("Dynamic Mesh")); meshItem.addActionListener(this); // meshGroupItem = menu.add(new MenuItem("Mesh Group")); // meshGroupItem.addActionListener(this); + if (Globals.ADVANCED) + { springItem = menu.add(new MenuItem("Spring")); springItem.addActionListener(this); flagItem = menu.add(new MenuItem("Flag")); flagItem.addActionListener(this); - bezierItem = menu.add(new MenuItem("Patch")); - bezierItem.addActionListener(this); - checkerItem = menu.add(new MenuItem("Checker")); - checkerItem.addActionListener(this); blobItem = menu.add(new MenuItem("Blob")); blobItem.addActionListener(this); latheItem = menu.add(new MenuItem("Lathe")); latheItem.addActionListener(this); + } + bezierItem = menu.add(new MenuItem("Bezier Patch")); + bezierItem.addActionListener(this); + overlayItem = menu.add(new MenuItem("Overlay")); + overlayItem.addActionListener(this); lightItem = menu.add(new MenuItem("Light")); lightItem.addActionListener(this); menu.add("-"); @@ -1102,34 +1158,39 @@ loopItem.addActionListener(this); doubleItem = menu.add(new MenuItem("Fork")); doubleItem.addActionListener(this); + if (Globals.ADVANCED) + { tripleItem = menu.add(new MenuItem("Trident")); tripleItem.addActionListener(this); + } } void buildToolsMenu(Menu menu) { menu.add(animationItem = new CheckboxMenuItem("Animation...")); animationItem.addItemListener(this); - animationItem.setState(CameraPane.ANIMATION); + animationItem.setState(Globals.ANIMATION); menu.add("-"); parseverticesItem = menu.add(new MenuItem("Multiplicity")); parseverticesItem.addActionListener(this); textureFieldItem = menu.add(new MenuItem("Texture Field")); textureFieldItem.addActionListener(this); - alignItem = menu.add(new MenuItem("Align")); + alignItem = menu.add(new MenuItem("Align Objects")); alignItem.addActionListener(this); - mirrorItem = menu.add(new MenuItem("Mirror Poses")); - mirrorItem.addActionListener(this); reduceMorphItem = menu.add(new MenuItem("Reduce Morphs")); reduceMorphItem.addActionListener(this); reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)")); reduce34MorphItem.addActionListener(this); - + menu.add("-"); menu.add(computeAOItem = new MenuItem("Compute AO")); computeAOItem.addActionListener(this); - menu.add("-"); + if (Globals.ADVANCED) + { + mirrorItem = menu.add(new MenuItem("Mirror Poses")); + mirrorItem.addActionListener(this); + menu.add("-"); menu.add(memoryItem = new MenuItem("Memory Usage")); memoryItem.addActionListener(this); menu.add(analyzeItem = new MenuItem("Analyze")); @@ -1152,6 +1213,7 @@ menu.add("-"); menu.add(editScriptItem = new MenuItem("Edit Script...")); editScriptItem.addActionListener(this); + } } void ScreenFit() @@ -1653,7 +1715,7 @@ { makeSomething(new BezierSurface()); } else - if (source == checkerItem) + if (source == overlayItem) { /* Object3D obj = new BezierSurface(5,8); @@ -1802,7 +1864,15 @@ } else if (source == importOBJItem) { - objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ"); + //objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ"); + FileDialog browser = new FileDialog(frame, "Import OBJ", FileDialog.LOAD); + browser.setVisible(true); + String filename = browser.getFile(); + if (filename != null && filename.length() > 0) + { + String fullname = browser.getDirectory() + filename; + makeSomething(ReadOBJ(fullname), true); + } } else if (source == computeAOItem) { @@ -1840,6 +1910,11 @@ if (source == dumpItem) { DumpObject(); + } else + if (source == oneStepButton) + { + Globals.ONESTEP = true; + cameraView.repaint(); } else if (source == screenfitButton) { @@ -1913,13 +1988,17 @@ { paste(false); } else + if (source == pasteIntoItem) + { + pasteInto(true, false); + } else if (source == pasteLinkItem) { - pasteInto(false); + pasteInto(false, false); } else if (source == pasteCloneItem) { - pasteInto(true); + pasteInto(true, true); } else if (source == pasteExpandItem) { @@ -2121,11 +2200,11 @@ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR)); for (int i=0; i<group.selection.size(); i++) { - boolean random = CameraPane.RANDOM; - CameraPane.RANDOM = false; // parse all random nodes + boolean random = CameraPane.SWITCH; + CameraPane.SWITCH = false; // parse all random nodes group.selection.get(i).linkVerticesThis(content); // group.selection.get(i).setMasterThis(content); // should be identity - CameraPane.RANDOM = random; + CameraPane.SWITCH = random; } Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR)); refreshContents(); @@ -2135,20 +2214,20 @@ { for (int i=0; i<group.selection.size(); i++) { - boolean random = CameraPane.RANDOM; - CameraPane.RANDOM = false; // parse all random nodes + boolean random = CameraPane.SWITCH; + CameraPane.SWITCH = false; // parse all random nodes group.selection.get(i).linkVerticesThis(null); - CameraPane.RANDOM = random; + CameraPane.SWITCH = random; } refreshContents(); } else if (source == relinkverticesItem) { - boolean random = CameraPane.RANDOM; - CameraPane.RANDOM = false; // parse all random nodes + boolean random = CameraPane.SWITCH; + CameraPane.SWITCH = false; // parse all random nodes group.selection.RelinkToSupport(); - CameraPane.RANDOM = random; + CameraPane.SWITCH = random; refreshContents(); } else @@ -2246,7 +2325,7 @@ RandomNode random = new RandomNode(); group(random); if (random.size() > 0) - random.name = random.get(0).name + "Rnd"; + random.name = random.get(0).name + "Switch"; } else if (source == physicsItem) { @@ -2903,7 +2982,7 @@ child.editWindow = null; // ??????????? } - objEditor.ctrlPanel.validate(); + objEditor.ctrlPanel.FlushUI(); //objEditor.jTree.clearSelection(); //objEditor.ResetSliders(); refreshContents(true); @@ -3622,11 +3701,11 @@ SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY); - boolean random = CameraPane.RANDOM; - CameraPane.RANDOM = false; // parse all random nodes + boolean random = CameraPane.SWITCH; + CameraPane.SWITCH = false; // parse all random nodes lowres.linkVerticesThis(null); lowres.linkVerticesThis(sn); - CameraPane.RANDOM = random; + CameraPane.SWITCH = random; System.err.flush(); @@ -4384,7 +4463,7 @@ refreshContents(); } - void pasteInto(boolean copyit) + void pasteInto(boolean copyit, boolean clone) { // if (GrafreeD.clipboard == null) // return; @@ -4413,7 +4492,14 @@ if (copyit) { // paste(false); - CloneClipboard(false); // sept 2014 + if (clone) + { + CloneClipboard(false); // sept 2014 + } + else + { + paste(false); + } } else { @@ -4957,10 +5043,12 @@ cButton flashSelectionButton; cButton editButton; cButton uneditButton; + JCheckBox allParamsButton; cButton clearpanelButton; - cButton allParamsButton; cButton unselectButton; + cButton oneStepButton; + cButton screenfitButton; cButton screenfitpointButton; cButton snapobjectButton; @@ -5015,6 +5103,7 @@ private MenuItem mergeGeometriesItem; private MenuItem copyItem; private MenuItem pasteItem; + private MenuItem pasteIntoItem; private MenuItem pasteLinkItem; private MenuItem pasteCloneItem; private MenuItem pasteExpandItem; @@ -5112,7 +5201,7 @@ private MenuItem blobItem; private MenuItem latheItem; private MenuItem bezierItem; - private MenuItem checkerItem; + private MenuItem overlayItem; private MenuItem meshItem; // private MenuItem meshGroupItem; private MenuItem springItem; -- Gitblit v1.6.2