Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/app/cycles_xml.cpp')
-rw-r--r--intern/cycles/app/cycles_xml.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp
index 14fe43115d5..f30e399350a 100644
--- a/intern/cycles/app/cycles_xml.cpp
+++ b/intern/cycles/app/cycles_xml.cpp
@@ -289,21 +289,6 @@ static void xml_read_camera(const XMLReadState& state, pugi::xml_node node)
xml_read_int(&cam->width, node, "width");
xml_read_int(&cam->height, node, "height");
- float aspect = (float)cam->width/(float)cam->height;
-
- if(cam->width >= cam->height) {
- cam->viewplane.left = -aspect;
- cam->viewplane.right = aspect;
- cam->viewplane.bottom = -1.0f;
- cam->viewplane.top = 1.0f;
- }
- else {
- cam->viewplane.left = -1.0f;
- cam->viewplane.right = 1.0f;
- cam->viewplane.bottom = -1.0f/aspect;
- cam->viewplane.top = 1.0f/aspect;
- }
-
if(xml_read_float(&cam->fov, node, "fov"))
cam->fov *= M_PI/180.0f;
@@ -333,7 +318,6 @@ static void xml_read_camera(const XMLReadState& state, pugi::xml_node node)
xml_read_float(&cam->sensorwidth, node, "sensorwidth");
xml_read_float(&cam->sensorheight, node, "sensorheight");
-
cam->matrix = state.tfm;
cam->need_update = true;