|
|
|
@ -320,16 +320,16 @@ public class Camera implements Savable, Cloneable { |
|
|
|
|
this.width = cam.width; |
|
|
|
|
this.height = cam.height; |
|
|
|
|
|
|
|
|
|
this.planeState = cam.planeState; |
|
|
|
|
this.viewportChanged = cam.viewportChanged; |
|
|
|
|
this.planeState = 0; |
|
|
|
|
this.viewportChanged = true; |
|
|
|
|
for (int i = 0; i < MAX_WORLD_PLANES; ++i) { |
|
|
|
|
worldPlane[i].setNormal(cam.worldPlane[i].getNormal()); |
|
|
|
|
worldPlane[i].setConstant(cam.worldPlane[i].getConstant()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.parallelProjection = cam.parallelProjection; |
|
|
|
|
if(cam.projectionMatrixOverride != null) { |
|
|
|
|
if(this.projectionMatrixOverride == null) { |
|
|
|
|
if (cam.projectionMatrixOverride != null) { |
|
|
|
|
if (this.projectionMatrixOverride == null) { |
|
|
|
|
this.projectionMatrixOverride = cam.projectionMatrixOverride.clone(); |
|
|
|
|
} else { |
|
|
|
|
this.projectionMatrixOverride.set(cam.projectionMatrixOverride); |
|
|
|
|