Asset Pipeline v2 #145
@ -343,6 +343,13 @@ class ASSETPIPE_OT_reset_ownership(bpy.types.Operator):
|
|||||||
bl_description = (
|
bl_description = (
|
||||||
"""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
|
||||||
|
Loading…
Reference in New Issue
Block a user