Archived
0
0

Fix Error depsgraph in Bake mesh cage (Thx.Zebus3d)

This commit is contained in:
2019-05-31 20:24:40 +00:00
parent e50a2ca6af
commit 607f3f952f

View File

@@ -38,7 +38,9 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator):
# --- get a mesh from the object ---
mesh = ob.to_mesh(bpy.context.depsgraph, apply_modifiers = True, calc_undeformed=False)
depsgraph = bpy.context.evaluated_depsgraph_get()
mesh_owner = ob.evaluated_get(depsgraph)
mesh = mesh_owner.to_mesh()
for mod in ob.modifiers:
if mod.type == 'SUBSURF':