AnimCupboard: ID Management Pie #127

Merged
Demeter Dzadik merged 11 commits from Mets/blender-studio-pipeline:AnimCupboard-relationship-viewer into main 2023-07-19 14:43:14 +02:00
Showing only changes of commit 3f601f7a9f - Show all commits

View File

@ -18,7 +18,7 @@ class IDMAN_MT_relationship_pie(bpy.types.Menu):
@staticmethod @staticmethod
def get_id(context) -> Optional[bpy.types.ID]: def get_id(context) -> Optional[bpy.types.ID]:
if context.area.type == 'OUTLINER' and len(context.selected_ids) > 0: if context.area.type == 'OUTLINER' and len(context.selected_ids) > 0:
return context.selected_ids[0] return context.selected_ids[-1]
@classmethod @classmethod
def poll(cls, context): def poll(cls, context):
@ -76,7 +76,7 @@ class RelationshipOperatorMixin:
lib_path = self.library_filepath or None lib_path = self.library_filepath or None
return storage.get((self.datablock_name, lib_path)) return storage.get((self.datablock_name, lib_path))
elif context.area.type == 'OUTLINER' and len(context.selected_ids) > 0: elif context.area.type == 'OUTLINER' and len(context.selected_ids) > 0:
return context.selected_ids[0] return context.selected_ids[-1]
@classmethod @classmethod
def poll(cls, context): def poll(cls, context):