.. | .. |
---|
4386 | 4386 | |
---|
4387 | 4387 | void New() |
---|
4388 | 4388 | { |
---|
| 4389 | + copy.skyboxname = "cubemaps/penguins-skyboxes/yonder"; |
---|
| 4390 | + copy.skyboxext = "jpg"; |
---|
| 4391 | + |
---|
| 4392 | + copy.versionlist = null; |
---|
| 4393 | + copy.versionindex = -1; |
---|
| 4394 | + |
---|
4389 | 4395 | while (copy.Size() > 0) |
---|
4390 | 4396 | { |
---|
4391 | 4397 | copy.remove(0); |
---|
.. | .. |
---|
4397 | 4403 | { |
---|
4398 | 4404 | CreateCameras(); |
---|
4399 | 4405 | cameraView.SetCamera(GetCamera(copy, 0)); |
---|
| 4406 | + cameraView.SetLight(GetCamera(copy, 4)); |
---|
4400 | 4407 | } |
---|
| 4408 | + |
---|
4401 | 4409 | ResetModel(); |
---|
| 4410 | + this.SetVersionStates(); |
---|
4402 | 4411 | objEditor.refreshContents(); |
---|
4403 | 4412 | } |
---|
4404 | 4413 | |
---|
.. | .. |
---|
4739 | 4748 | replaceButton.setEnabled(copy.versionindex != -1); |
---|
4740 | 4749 | |
---|
4741 | 4750 | previousVersionButton.setEnabled(copy.versionindex > 0); |
---|
4742 | | - nextVersionButton.setEnabled(copy.versionlist[copy.versionindex + 1] != null); |
---|
| 4751 | + nextVersionButton.setEnabled(copy.versionlist != null && copy.versionlist[copy.versionindex + 1] != null); |
---|
4743 | 4752 | |
---|
4744 | 4753 | deleteVersionButton.setEnabled(copy.versionindex != -1); |
---|
4745 | 4754 | //copy.versionlist[copy.versionindex + 1] != null); |
---|
.. | .. |
---|
4862 | 4871 | { |
---|
4863 | 4872 | if (copy == Grafreed.grafreed.universe) |
---|
4864 | 4873 | { |
---|
4865 | | - Camera neweye = (Camera)copy.GetObject(cameraView.cameras[0].GetUUID()); |
---|
| 4874 | + Camera neweye = (Camera)copy.GetObject(cameraView.cameras[cameraView.cameracount^1].GetUUID()); |
---|
4866 | 4875 | Camera newlight = (Camera)copy.GetObject(cameraView.LightCamera().GetUUID()); |
---|
4867 | 4876 | |
---|
4868 | 4877 | cameraView.SetCamera(neweye); |
---|