AnimCupboard: ID Management Pie #127
@ -18,7 +18,7 @@ class IDMAN_MT_relationship_pie(bpy.types.Menu):
|
||||
@staticmethod
|
||||
def get_id(context) -> Optional[bpy.types.ID]:
|
||||
if context.area.type == 'OUTLINER' and len(context.selected_ids) > 0:
|
||||
return context.selected_ids[0]
|
||||
return context.selected_ids[-1]
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@ -76,7 +76,7 @@ class RelationshipOperatorMixin:
|
||||
lib_path = self.library_filepath or None
|
||||
return storage.get((self.datablock_name, lib_path))
|
||||
elif context.area.type == 'OUTLINER' and len(context.selected_ids) > 0:
|
||||
return context.selected_ids[0]
|
||||
return context.selected_ids[-1]
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
Loading…
Reference in New Issue
Block a user