Asset Pipeline v2 #145
@ -344,6 +344,13 @@ class ASSETPIPE_OT_reset_ownership(bpy.types.Operator):
|
|||||||
"""Reset the Object owner and transfer data on selected object(s)"""
|
"""Reset the Object owner and transfer data on selected object(s)"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def poll(cls, context: bpy.types.Context) -> bool:
|
||||||
|
if len(context.selected_objects) == 0:
|
||||||
|
cls.poll_message_set("No Objects Selected")
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
def execute(self, context: bpy.types.Context):
|
def execute(self, context: bpy.types.Context):
|
||||||
objs = context.selected_objects
|
objs = context.selected_objects
|
||||||
for obj in objs:
|
for obj in objs:
|
||||||
|
Loading…
Reference in New Issue
Block a user