Asset Pipeline v2 #145
@ -40,6 +40,10 @@ class ASSETPIPE_ownership_inspector(bpy.types.Panel):
|
||||
|
||||
def draw(self, context: bpy.types.Context) -> None:
|
||||
layout = self.layout
|
||||
status = context.scene.asset_status
|
||||
if not status.is_asset_pipeline_file:
|
||||
layout.label(text="Open valid 'Asset Pipeline' file", icon="ERROR")
|
||||
return
|
||||
if not context.active_object:
|
||||
layout.label(text="Set an Active Object to Inspect")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user