Fix for merged 'normal map tangents not working correctly when there are no UV maps.'
authorAlexander Romanov <a.romanov@blend4web.com>
Mon, 3 Jul 2017 17:02:39 +0000 (20:02 +0300)
committerAlexander Romanov <a.romanov@blend4web.com>
Mon, 3 Jul 2017 17:13:52 +0000 (20:13 +0300)
source/blender/blenkernel/intern/mesh_tangent.c

index 5a25767d3ef71f26a5af403ecf097bff1dce9d4f..ecf2766663ff583d826ccf12bc9014a2229b7247 100644 (file)
@@ -528,6 +528,9 @@ void BKE_mesh_calc_loop_tangent_step_0(
                if (add)
                        *rtangent_mask |= (char)(1 << n);
        }
                if (add)
                        *rtangent_mask |= (char)(1 << n);
        }
+
+       if (uv_layer_num == 0)
+               *rtangent_mask |= DM_TANGENT_MASK_ORCO;
 }
 
 /**
 }
 
 /**