Normand Briere
2019-08-13 0cdf3fb57ddea3226f094ba45c836c7e9b123e3a
ObjEditor.java
....@@ -4129,7 +4129,7 @@
41294129 {
41304130 //Save(true);
41314131 Replace();
4132
- SetUndoStates();
4132
+ SetVersionStates();
41334133 }
41344134
41354135 private boolean Equal(byte[] compress, byte[] name)
....@@ -4159,7 +4159,7 @@
41594159
41604160 CopyChanged();
41614161
4162
- SetUndoStates();
4162
+ SetVersionStates();
41634163 }
41644164
41654165 public boolean Save(boolean user)
....@@ -4205,7 +4205,7 @@
42054205 // copy.versionlist[i] = null;
42064206 // }
42074207
4208
- SetUndoStates();
4208
+ SetVersionStates();
42094209
42104210 // test save
42114211 if (false)
....@@ -4265,7 +4265,7 @@
42654265 {
42664266 Object3D obj = (Object3D)Grafreed.clone(copy.versionlist[copy.versionindex]);
42674267
4268
- SetUndoStates();
4268
+ SetVersionStates();
42694269
42704270 boolean temp = CameraPane.SWITCH;
42714271 CameraPane.SWITCH = false;
....@@ -4332,7 +4332,7 @@
43324332 return count;
43334333 }
43344334
4335
- void SetUndoStates()
4335
+ void SetVersionStates()
43364336 {
43374337 //if (true)
43384338 // return;
....@@ -5111,7 +5111,7 @@
51115111 }
51125112
51135113 if (previousVersionButton != null && copy.versionlist != null)
5114
- SetUndoStates();
5114
+ SetVersionStates();
51155115 }
51165116
51175117 static TweenManager tweenManager = new TweenManager();
....@@ -5596,6 +5596,8 @@
55965596
55975597 void save()
55985598 {
5599
+ Replace();
5600
+
55995601 if (lastname == null)
56005602 {
56015603 return;