diff options
author | Thomas Dinges <blender@dingto.org> | 2013-01-18 02:51:54 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-01-18 02:51:54 +0400 |
commit | 1a131171cb208d1f45d62c287fbe4fc5c3bbe42b (patch) | |
tree | f48a76606ba663951f077dffba28213c3a1bd16f /intern/cycles/app | |
parent | 61ce87e7410b564edb7eaf73f37b944542f42d35 (diff) |
Cycles Test App:
* Fix compile for camera xml properties.
Diffstat (limited to 'intern/cycles/app')
-rw-r--r-- | intern/cycles/app/cycles_xml.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp index 5de9d71b8cc..40fbb7af556 100644 --- a/intern/cycles/app/cycles_xml.cpp +++ b/intern/cycles/app/cycles_xml.cpp @@ -233,16 +233,16 @@ static void xml_read_film(const XMLReadState& state, pugi::xml_node node) float aspect = (float)cam->width/(float)cam->height; if(cam->width >= cam->height) { - cam->left = -aspect; - cam->right = aspect; - cam->bottom = -1.0f; - cam->top = 1.0f; + cam->viewplane.left = -aspect; + cam->viewplane.right = aspect; + cam->viewplane.bottom = -1.0f; + cam->viewplane.top = 1.0f; } else { - cam->left = -1.0f; - cam->right = 1.0f; - cam->bottom = -1.0f/aspect; - cam->top = 1.0f/aspect; + cam->viewplane.left = -1.0f; + cam->viewplane.right = 1.0f; + cam->viewplane.bottom = -1.0f/aspect; + cam->viewplane.top = 1.0f/aspect; } cam->need_update = true; |