[Bf-blender-cvs] [60a8c3970cc] cycles_procedural_api: fix for missing width and height on dicing camera

Kévin Dietrich noreply at git.blender.org
Sat Oct 3 04:18:24 CEST 2020


Commit: 60a8c3970ccc7a504eb94d52906e521a802bcafe
Author: Kévin Dietrich
Date:   Sat Oct 3 04:00:19 2020 +0200
Branches: cycles_procedural_api
https://developer.blender.org/rB60a8c3970ccc7a504eb94d52906e521a802bcafe

fix for missing width and height on dicing camera

===================================================================

M	intern/cycles/render/geometry.cpp

===================================================================

diff --git a/intern/cycles/render/geometry.cpp b/intern/cycles/render/geometry.cpp
index de063cea733..980ec607b2c 100644
--- a/intern/cycles/render/geometry.cpp
+++ b/intern/cycles/render/geometry.cpp
@@ -1300,6 +1300,7 @@ void GeometryManager::device_update(Device *device,
     });
 
     Camera *dicing_camera = scene->dicing_camera;
+    dicing_camera->set_screen_size_and_resolution(dicing_camera->get_full_width(), dicing_camera->get_full_height(), 1);
     dicing_camera->update(scene);
 
     size_t i = 0;



More information about the Bf-blender-cvs mailing list