AnimCupboard: ID Management Pie #127
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user