Normand Briere
2019-07-21 d32f24f147068e6cbecb31c7f98047f68bc8b58a
GroupEditor.java
....@@ -80,18 +80,20 @@
8080 this.copy = this.group = copy;
8181 //selectees = this.group.selectees;
8282
83
- if (copy.versions == null)
84
- {
85
- copy.versions = new byte[100][];
86
- copy.versionindex = -1;
87
- }
88
-
8983 SetupMenu2(this); //objEditor);
9084 SetupUI2(objEditor);
9185 objEditor.SetupUI(true);
9286 SetupViews(objEditor);
9387
9488 ((cRadio)radioPanel.getComponent(0)).SetCamera(cameraView.renderCamera, true);
89
+
90
+ if (copy.versions == null)
91
+ {
92
+ copy.versions = new byte[100][];
93
+ copy.versionindex = -1;
94
+
95
+ Save(true);
96
+ }
9597 }
9698
9799 void CloneSelection(boolean supports)
....@@ -3151,7 +3153,7 @@
31513153 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
31523154 {
31533155 obj = (Object3D)e.nextElement();
3154
- obj.SetBumpTexture(null);
3156
+ obj.ResetBumpTexture();
31553157 }
31563158
31573159 refreshContents();
....@@ -4161,7 +4163,7 @@
41614163
41624164 try
41634165 {
4164
- texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
4166
+ texturedata = Globals.theRenderer.GetTextureData(tex.pigmenttexture, pigment, false, node.texres);
41654167 }
41664168 catch (Exception e)
41674169 {
....@@ -4798,7 +4800,7 @@
47984800
47994801 void refreshContents(boolean cp)
48004802 {
4801
- if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Info"))
4803
+ if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
48024804 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
48034805 {
48044806 objEditor.ClearInfo(); // .GetMaterial());