Asset Pipeline v2 #145
@ -7,6 +7,11 @@ avaliable task layers from the task_layer_defaults.json file that needs to be cr
|
||||
|
||||
|
||||
class ASSET_STATUS(bpy.types.PropertyGroup):
|
||||
is_asset_pipeline_file: bpy.props.BoolProperty(
|
||||
name="Asset Pipeline File",
|
||||
description="Asset Pipeline Files are used in the asset pipeline, if file is not asset pipeline file user will be prompted to create a new asset",
|
||||
default=False,
|
||||
)
|
||||
is_depreciated: bpy.props.BoolProperty(
|
||||
name="Depreciated",
|
||||
description="Depreciated files do not recieve any updates when syncing from a task layer",
|
||||
|
@ -8,11 +8,15 @@ class ASSETPIPE_sync(bpy.types.Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'UI'
|
||||
bl_category = 'Asset Pipe 2'
|
||||
bl_label = "Sync"
|
||||
bl_label = "Asset Managment"
|
||||
|
||||
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="Isn't Asset Pipeline File")
|
||||
# layout.operator("")
|
||||
return
|
||||
layout.label(
|
||||
text=f"Active Task Layer: {context.collection.name.split('.')[-1]}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user