From cc739d9b02ee515a4483a5cedfe18f78c16ad895 Mon Sep 17 00:00:00 2001 From: John Haddon Date: Fri, 11 Aug 2023 10:05:26 +0100 Subject: [PATCH] Arnold CameraAlgo : Fix screen window for Lentil cameras --- Changes.md | 4 ++++ src/IECoreArnold/CameraAlgo.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changes.md b/Changes.md index 947bbae98c3..df0a88de5d2 100644 --- a/Changes.md +++ b/Changes.md @@ -1,6 +1,10 @@ 1.2.10.x (relative to 1.2.10.1) ======== +Fixes +----- + +- Arnold : Fixed screen window export for Lentil cameras. 1.2.10.1 (relative to 1.2.10.0) ======== diff --git a/src/IECoreArnold/CameraAlgo.cpp b/src/IECoreArnold/CameraAlgo.cpp index 6289c2cca0b..5a1f4828cf4 100644 --- a/src/IECoreArnold/CameraAlgo.cpp +++ b/src/IECoreArnold/CameraAlgo.cpp @@ -190,7 +190,7 @@ Imath::Box2f screenWindow( const IECoreScene::Camera *camera ) { Imath::Box2f result = camera->frustum(); - if( camera->getProjection() == "perspective" ) + if( camera->getProjection() == "perspective" || camera->getProjection() == "lentil_camera" ) { // Normalise so that Arnold's NDC space goes from 0-1 across the aperture. // This is helpful when using Arnold `uv_remap` shaders.