mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-06 21:13:27 +00:00
Force blender-evaluated normal usage for cooking
This commit is contained in:
parent
aef919a665
commit
5ed9af92a2
@ -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.ops.mesh.select_all(action='DESELECT')
|
||||||
bpy.context.scene.update()
|
bpy.context.scene.update()
|
||||||
bpy.ops.object.mode_set(mode='OBJECT')
|
bpy.ops.object.mode_set(mode='OBJECT')
|
||||||
rna_loops = None
|
copy_mesh.calc_normals_split()
|
||||||
if copy_mesh.has_custom_normals:
|
rna_loops = copy_mesh.loops
|
||||||
copy_mesh.calc_normals_split()
|
|
||||||
rna_loops = copy_mesh.loops
|
|
||||||
|
|
||||||
# Filter out useless AABB points and send data
|
# Filter out useless AABB points and send data
|
||||||
pt = copy_obj.bound_box[0]
|
pt = copy_obj.bound_box[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user