Normand Briere
2018-07-08 f4160780a4d8278920b99ada1050f320d6e30a73
Object3D.java
....@@ -285,6 +285,7 @@
285285 return parent.GetName() + "#";
286286 }
287287
288
+ boolean timeline = false;
288289 boolean live = false;
289290 boolean hide = false;
290291 boolean link2master = false; // performs reset support/master at each frame
....@@ -355,7 +356,7 @@
355356
356357 int MemorySize()
357358 {
358
- if (memorysize == 0)
359
+ if (true) // memorysize == 0)
359360 {
360361 try
361362 {
....@@ -1446,7 +1447,16 @@
14461447 // if (other == null)
14471448 // return;
14481449
1449
- System.out.println("Link support this = " + this + "; other = " + other);
1450
+ if (other != null)
1451
+ {
1452
+ BoundaryRep.SEUIL = other.material.cameralight;
1453
+
1454
+ // Set default to 0.1
1455
+ BoundaryRep.SEUIL /= 2;
1456
+ System.out.println("SEUIL = " + BoundaryRep.SEUIL);
1457
+ }
1458
+
1459
+ System.out.println("Link this = " + this + "; support = " + other);
14501460
14511461 //if (bRep != null)
14521462 // bRep.linkVerticesThis(other.bRep);
....@@ -1816,8 +1826,9 @@
18161826 if (obj.name == null)
18171827 continue; // can't be a null one
18181828
1819
- //if (n.contains(obj.name)) // dec 2013 name.split(":")[0])) // Poser generates a count
1820
- if (n.startsWith(obj.name))
1829
+ String name = obj.name.split(":")[0]; // Poser generates a count
1830
+ //if (n.startsWith(obj.name))
1831
+ if (n.contains(name))
18211832 {
18221833 theobj = obj;
18231834 count++;
....@@ -2732,6 +2743,24 @@
27322743 blockloop = false;
27332744 }
27342745
2746
+ void GenNormalsMINE()
2747
+ {
2748
+ if (blockloop)
2749
+ return;
2750
+
2751
+ blockloop = true;
2752
+ GenNormalsMINE0();
2753
+ for (int i = 0; i < Children().Size(); i++)
2754
+ {
2755
+ Object3D child = (Object3D) Children().get(i); // reserve(i);
2756
+ if (child == null)
2757
+ continue;
2758
+ child.GenNormalsMINE();
2759
+// Children().release(i);
2760
+ }
2761
+ blockloop = false;
2762
+ }
2763
+
27352764 void ClearColors()
27362765 {
27372766 if (blockloop)
....@@ -2876,6 +2905,15 @@
28762905 if (bRep != null)
28772906 {
28782907 bRep.GenerateNormals(crease);
2908
+ Touch();
2909
+ }
2910
+ }
2911
+
2912
+ void GenNormalsMINE0()
2913
+ {
2914
+ if (bRep != null)
2915
+ {
2916
+ bRep.GenerateNormalsMINE();
28792917 Touch();
28802918 }
28812919 }
....@@ -4111,7 +4149,7 @@
41114149 if (blockloop)
41124150 return;
41134151
4114
- for (int i=0; i<size(); i++)
4152
+ for (int i=0; i<Size(); i++)
41154153 {
41164154 if (get(i).parent != this)
41174155 {
....@@ -7733,7 +7771,7 @@
77337771 if (parent == null)
77347772 {
77357773 System.out.println("NULL PARENT");
7736
- new Exception().printStackTrace();
7774
+ //new Exception().printStackTrace();
77377775 } else
77387776 {
77397777 if (parent instanceof BezierPatch)