Fix T49245: Adaptive Subdivision with Auto Smooth causes weird mesh appearance
authorMai Lavelle <mai.lavelle@gmail.com>
Sun, 18 Sep 2016 17:21:29 +0000 (13:21 -0400)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Sep 2016 09:07:36 +0000 (11:07 +0200)
intern/cycles/blender/blender_mesh.cpp

index c33bc4c..dba6897 100644 (file)
@@ -606,7 +606,7 @@ static void create_mesh(Scene *scene,
        int numtris = 0;
        int numcorners = 0;
        int numngons = 0;
-       bool use_loop_normals = b_mesh.use_auto_smooth();
+       bool use_loop_normals = b_mesh.use_auto_smooth() && (mesh->subdivision_type != Mesh::SUBDIVISION_CATMULL_CLARK);
 
        BL::Mesh::vertices_iterator v;
        BL::Mesh::tessfaces_iterator f;