Commit: b5756671689e76ec14ba5f69880f606b169c5470
Author: Kévin Dietrich
Date:   Fri Jun 17 13:59:06 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rBb5756671689e76ec14ba5f69880f606b169c5470

Set smooth flag on polys when importing loop normals.

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

M       source/blender/alembic/intern/abc_mesh.cc

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

diff --git a/source/blender/alembic/intern/abc_mesh.cc 
b/source/blender/alembic/intern/abc_mesh.cc
index f88013d..03fda69 100644
--- a/source/blender/alembic/intern/abc_mesh.cc
+++ b/source/blender/alembic/intern/abc_mesh.cc
@@ -1090,6 +1090,8 @@ void read_mpolys(MPoly *mpolys, MLoop *mloops, MLoopUV 
*mloopuvs, CustomData *ld
                        loop.v = (*face_indices)[loop_index];
 
                        if (do_normals) {
+                               poly.flag |= ME_SMOOTH;
+
                                nor = (*normals)[loop_index];
                                copy_yup_zup(pnors[rev_loop_index], 
nor.getValue());
                        }

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

Reply via email to