Normand Briere
2019-09-30 3966454055db8e04700e881a091c2d33dcfda232
tab index
6 files modified
18 ■■■■ changed files
CameraPane.java 2 ●●●●● patch | view | raw | blame | history
Cone.java 3 ●●●● patch | view | raw | blame | history
GroupEditor.java 4 ●●●● patch | view | raw | blame | history
ObjEditor.java 5 ●●●●● patch | view | raw | blame | history
Object3D.java 2 ●●●●● patch | view | raw | blame | history
ParticleNode.java 2 ●●● patch | view | raw | blame | history
CameraPane.java
....@@ -14680,6 +14680,8 @@
1468014680 // RigidBody.pos.y = (float)manipCamera.lookAt.y;
1468114681 // RigidBody.pos.z = (float)manipCamera.lookAt.z;
1468214682 // System.err.println("selected point = " + Trunk(selectedpoint.toParent[3][0]) + " " + Trunk(selectedpoint.toParent[3][1]) + " " + Trunk(selectedpoint.toParent[3][2]));
14683
+ CreateSelectedPoint();
14684
+
1468314685 RigidBody.pos.x = (float)selectedpoint.toParent[3][0];
1468414686 RigidBody.pos.y = (float)selectedpoint.toParent[3][1];
1468514687 RigidBody.pos.z = (float)selectedpoint.toParent[3][2];
Cone.java
....@@ -2,7 +2,8 @@
22
33 class Cone extends Biparam implements java.io.Serializable
44 {
5
- static final long serialVersionUID = -2558098774090336324L; // -679715043452968126L;
5
+ static final long serialVersionUID = -2558098774090336324L; // new
6
+ // -679715043452968126L; // old
67
78 Cone()
89 {
GroupEditor.java
....@@ -5417,6 +5417,10 @@
54175417
54185418 if (tps != null && tps.length == 1)
54195419 {
5420
+ int tabIndex = ((Object3D)group.selection.elementAt(0)).tabIndex;
5421
+ if (tabIndex > 0)
5422
+ objectTabbedPane.setSelectedIndex(tabIndex-1);
5423
+
54205424 EditSelection(false);
54215425 }
54225426
ObjEditor.java
....@@ -560,6 +560,11 @@
560560 // }
561561 cameraView.transformMode = objectTabbedPane.getSelectedIndex() == transformTabIndex;
562562
563
+ if (copy.selection.size() == 1)
564
+ {
565
+ copy.selection.get(0).tabIndex = objectTabbedPane.getSelectedIndex() + 1;
566
+ }
567
+
563568 // refreshContents(false); // To refresh Info tab
564569 cameraView.repaint();
565570 }
Object3D.java
....@@ -41,6 +41,8 @@
4141
4242 java.util.Hashtable<java.util.UUID, Object3D> versiontable; // = new java.util.Hashtable<java.util.UUID, Object3D>();
4343
44
+ int tabIndex;
45
+
4446 ScriptNode scriptnode;
4547
4648 void deepCopyNode(Object3D other)
ParticleNode.java
....@@ -353,7 +353,7 @@
353353
354354 Object3D geo = test;
355355
356
- if (support != null && link2master)
356
+ if (support != null && Link2Support())
357357 geo = support;
358358
359359 if (live && Globals.isLIVE() && (display.DrawMode() == display.SHADOW || !Globals.RENDERSHADOW)) // june 2013