[Bf-blender-cvs] [154ff1afdef] blender2.8: Fix/Workaround T51561: Disable split normals

Campbell Barton noreply at git.blender.org
Wed May 24 17:36:23 CEST 2017


Commit: 154ff1afdef97947190f5de9225284b9d9f556fd
Author: Campbell Barton
Date:   Thu May 25 01:15:29 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB154ff1afdef97947190f5de9225284b9d9f556fd

Fix/Workaround T51561: Disable split normals

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

M	source/blender/draw/intern/draw_cache_impl_mesh.c

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

diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index eaf159b5785..06738b87a0b 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -493,9 +493,12 @@ static MeshRenderData *mesh_render_data_create(Mesh *me, const int types)
 					}
 					else {
 #undef me
+						/* XXX. this should work, check on this when we add split normals, see: T51561. */
+#if 0
 						if (!CustomData_has_layer(cd_ldata, CD_NORMAL)) {
 							BKE_mesh_calc_normals_split(me);
 						}
+#endif
 
 						bool calc_active_tangent = false;
 						const float (*poly_normals)[3] = rdata->poly_normals;




More information about the Bf-blender-cvs mailing list