[Bf-blender-cvs] [80a3f4f] master: Cycles: Fix for possibly uninitialized variable

Sergey Sharybin noreply at git.blender.org
Fri Oct 17 10:57:16 CEST 2014


Commit: 80a3f4fecfe6e12674aba8fe3327ca33b3de3bef
Author: Sergey Sharybin
Date:   Fri Oct 17 10:56:36 2014 +0200
Branches: master
https://developer.blender.org/rB80a3f4fecfe6e12674aba8fe3327ca33b3de3bef

Cycles: Fix for possibly uninitialized variable

That's rather harmless in the master, just could cause some issues with the patches.

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

M	intern/cycles/render/mesh.cpp

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

diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp
index 4210339..6137f7d 100644
--- a/intern/cycles/render/mesh.cpp
+++ b/intern/cycles/render/mesh.cpp
@@ -93,6 +93,8 @@ Mesh::Mesh()
 
 	attributes.triangle_mesh = this;
 	curve_attributes.curve_mesh = this;
+
+	has_volume = false;
 }
 
 Mesh::~Mesh()




More information about the Bf-blender-cvs mailing list