Skip to content

Commit

Permalink
fix: ensure select objects are made single-user when executing the ap…
Browse files Browse the repository at this point in the history
…ply_modifiers operator
  • Loading branch information
tristan-hm committed Sep 13, 2022
1 parent 7aba702 commit a5955fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/apply_modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def poll(cls, context):


def execute(self, context):
bpy.ops.object.make_single_user(object=True, obdata=True, material=False, animation=False, obdata_animation=False)

for obj in context.selected_objects:
self.collapse_modifiers(obj)

Expand Down

0 comments on commit a5955fb

Please sign in to comment.