Panel update + fix for remove function so it doesn't remove all instances

This commit is contained in:
Nero Frame 13 committed 2026-10-28 11:03:16 +01:00
1 parent fbc7ac18e4
commit 3f87904cd1
5 files changed
+182 -159

No files matched your search

+6 -1
View File
@@ -67,7 +67,12 @@ def instances(library):
def instance_objects(instance):
return [instance] if isinstance(instance, bpy.types.Object) else list(instance.all_objects)
"""The objects of one instance: the empty, or the override's own objects. Linked objects an
override keeps (bone widgets in a collection with nothing to override...) are shared by
every instance of the asset: they are left out, so selecting them picks no instance."""
if isinstance(instance, bpy.types.Object):
return [instance]
return [ob for ob in instance.all_objects if ob.library is None]
def selected_instances(view_layer):