Fix Error depsgraph in Bake mesh cage (Thx.Zebus3d)
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user