Commit: 0b89923a4f737fd119549f7e6e7161eefabcbc05
Author: Lukas Tönne
Date:   Tue Mar 24 18:02:36 2015 +0100
Branches: alembic
https://developer.blender.org/rB0b89923a4f737fd119549f7e6e7161eefabcbc05

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to