Skip to content

Commit

Permalink
The final_obj is the same object which the butil.delete command will …
Browse files Browse the repository at this point in the history
…delete all meshes. This creates later an error. You have to copy the object
  • Loading branch information
wschauer committed Dec 20, 2024
1 parent e254428 commit b8531f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infinigen/assets/static_assets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def process_object(obj, parent=None):
bpy.context.view_layer.objects.active = mesh_objects[0]
bpy.ops.object.join()

final_obj = bpy.context.active_object
final_obj = bpy.context.active_object.copy()

butil.delete(list(butil.iter_object_tree(root_obj)))

Expand Down

0 comments on commit b8531f5

Please sign in to comment.