[Bf-blender-cvs] [a5bb4017041] master: Cleanup: fix compiler warning.

Brecht Van Lommel noreply at git.blender.org
Thu Sep 6 20:13:45 CEST 2018


Commit: a5bb40170417acede168291eb81e3076a6cee077
Author: Brecht Van Lommel
Date:   Thu Sep 6 20:09:13 2018 +0200
Branches: master
https://developer.blender.org/rBa5bb40170417acede168291eb81e3076a6cee077

Cleanup: fix compiler warning.

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

M	intern/cycles/render/camera.cpp

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

diff --git a/intern/cycles/render/camera.cpp b/intern/cycles/render/camera.cpp
index cc3dd1c923b..ec3c56e820a 100644
--- a/intern/cycles/render/camera.cpp
+++ b/intern/cycles/render/camera.cpp
@@ -716,7 +716,7 @@ float Camera::world_to_raster_size(float3 P)
 		float3 D = transform_point(&worldtocamera, P);
 		float dist = len(D);
 
-		Ray ray;
+		Ray ray = {0};
 
 		/* Distortion can become so great that the results become meaningless, there
 		 * may be a better way to do this, but calculating differentials from the



More information about the Bf-blender-cvs mailing list