Skip to content

Commit

Permalink
replaced data.objects with context.scene.objects (poly-hammer#72)
Browse files Browse the repository at this point in the history
Resolves Extensions data.objects policy violation
JoshQuake authored Aug 7, 2024
1 parent 4e7a785 commit 8d4b5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/ue2rigify/core/scene.py
Original file line number Diff line number Diff line change
@@ -368,7 +368,7 @@ def remove_metarig():
bpy.data.objects.remove(metarig_object)

# remove the metarig object duplicates
for scene_object in bpy.data.objects:
for scene_object in bpy.context.scene.objects:
if scene_object.name.startswith(f'{Rigify.META_RIG_NAME}.'):
bpy.data.objects.remove(scene_object)

0 comments on commit 8d4b5a6

Please sign in to comment.