[Bf-blender-cvs] [0113a3c] gooseberry: Make sure normals are correct before writing mesh data to caches.

Lukas Tönne noreply at git.blender.org
Tue Mar 24 18:04:14 CET 2015


Commit: 0113a3c27c1bab51e4b974878f5b4ef462393763
Author: Lukas Tönne
Date:   Tue Mar 24 18:02:36 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB0113a3c27c1bab51e4b974878f5b4ef462393763

Make sure normals are correct before writing mesh data to caches.

Normal data layers might not be updated during cache baking
automatically.

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

M	source/blender/pointcache/alembic/abc_mesh.cpp

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

diff --git a/source/blender/pointcache/alembic/abc_mesh.cpp b/source/blender/pointcache/alembic/abc_mesh.cpp
index 15bda67..dd37939 100644
--- a/source/blender/pointcache/alembic/abc_mesh.cpp
+++ b/source/blender/pointcache/alembic/abc_mesh.cpp
@@ -252,6 +252,7 @@ void AbcDerivedMeshWriter::write_sample()
 	std::vector<N3f> loop_normals_buffer;
 	
 	// TODO decide how to handle vertex/face normals, in caching vs. export ...
+	DM_ensure_normals(output_dm);
 	
 	create_sample_verts(output_dm, vert_sample);
 	create_sample_edges(output_dm, edge_sample);




More information about the Bf-blender-cvs mailing list