Normand Briere
2019-06-09 3ae9b1de47e51e7c150412f2bb14383cb6a5f8f8
ObjEditor.java
....@@ -501,13 +501,13 @@
501501 //SendInfo("Name:", "bold");
502502 if (sel.GetTextures() != null || debug)
503503 {
504
- si.SendInfo(sel.toString(), "bold");
504
+ si.SendInfo(sel.toString() + (Globals.ADVANCED?"":" " + System.identityHashCode(sel)), "bold");
505505 //SendInfo("#children virtual = " + sel.size() + "; real = " + sel.Size() + newline, "regular");
506506 if (sel.Size() > 0)
507507 {
508508 si.SendInfo("#children = " + sel.Size(), "regular");
509509 }
510
- si.SendInfo((debug ? " Parent: " : " ") + sel.parent, "regular");
510
+ si.SendInfo((debug ? " Parent: " : " ") + sel.parent + (Globals.ADVANCED?"":" " + System.identityHashCode(sel.parent)), "regular");
511511 if (debug)
512512 {
513513 try
....@@ -549,7 +549,7 @@
549549 }
550550 if (sel.support != null)
551551 {
552
- si.SendInfo(" support: " + sel.support, "regular");
552
+ si.SendInfo(" support: " + sel.support + (Globals.ADVANCED?"":" " + System.identityHashCode(sel.support)), "regular");
553553 }
554554 if (sel.scriptnode != null)
555555 {
....@@ -784,6 +784,7 @@
784784 // NumberSlider vDivsField;
785785 // JCheckBox endcaps;
786786 JCheckBox liveCB;
787
+ JCheckBox selectCB;
787788 JCheckBox hideCB;
788789 JCheckBox link2masterCB;
789790 JCheckBox markCB;
....@@ -986,9 +987,11 @@
986987
987988 liveCB = AddCheckBox(setupPanel, "Live", copy.live);
988989 liveCB.setToolTipText("Animate object");
990
+ selectCB = AddCheckBox(setupPanel, "Select", !copy.dontselect);
991
+ selectCB.setToolTipText("Make object selectable");
992
+// Return();
989993 hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
990994 hideCB.setToolTipText("Hide object");
991
-// Return();
992995 markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
993996 markCB.setToolTipText("Set the animation target transform");
994997
....@@ -1028,7 +1031,7 @@
10281031 oe.ctrlPanel.add(commandsPanel);
10291032 oe.ctrlPanel.Return();
10301033
1031
- pushPanel = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, 1);
1034
+ pushPanel = AddSlider(oe.ctrlPanel, "Push", -1, 1, copy.NORMALPUSH, 1.1); // To have the buttons
10321035 normalpushField = (cNumberSlider)pushPanel.getComponent(1);
10331036 //Return();
10341037
....@@ -3007,6 +3010,10 @@
30073010 {
30083011 copy.live ^= true;
30093012 return;
3013
+ } else if (event.getSource() == selectCB)
3014
+ {
3015
+ copy.dontselect ^= true;
3016
+ return;
30103017 } else if (event.getSource() == hideCB)
30113018 {
30123019 copy.hide ^= true;
....@@ -3588,7 +3595,7 @@
35883595 }
35893596
35903597 if (normalpushField != null)
3591
- copy.NORMALPUSH = (float)normalpushField.getFloat()/1000;
3598
+ copy.NORMALPUSH = (float)normalpushField.getFloat()/100;
35923599 }
35933600
35943601 void SnapObject()