Force blender-evaluated normal usage for cooking

This commit is contained in:
Jack Andersen 2016-03-28 18:03:04 -10:00
parent aef919a665
commit 5ed9af92a2
1 changed files with 2 additions and 4 deletions

View File

@ -49,10 +49,8 @@ def cook(writebuf, mesh_obj, output_mode, max_skin_banks, max_octant_length=None
bpy.ops.mesh.select_all(action='DESELECT')
bpy.context.scene.update()
bpy.ops.object.mode_set(mode='OBJECT')
rna_loops = None
if copy_mesh.has_custom_normals:
copy_mesh.calc_normals_split()
rna_loops = copy_mesh.loops
copy_mesh.calc_normals_split()
rna_loops = copy_mesh.loops
# Filter out useless AABB points and send data
pt = copy_obj.bound_box[0]