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):
|
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(
|
is_depreciated: bpy.props.BoolProperty(
|
||||||
name="Depreciated",
|
name="Depreciated",
|
||||||
description="Depreciated files do not recieve any updates when syncing from a task layer",
|
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_space_type = 'VIEW_3D'
|
||||||
bl_region_type = 'UI'
|
bl_region_type = 'UI'
|
||||||
bl_category = 'Asset Pipe 2'
|
bl_category = 'Asset Pipe 2'
|
||||||
bl_label = "Sync"
|
bl_label = "Asset Managment"
|
||||||
|
|
||||||
def draw(self, context: bpy.types.Context) -> None:
|
def draw(self, context: bpy.types.Context) -> None:
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
status = context.scene.asset_status
|
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(
|
layout.label(
|
||||||
text=f"Active Task Layer: {context.collection.name.split('.')[-1]}"
|
text=f"Active Task Layer: {context.collection.name.split('.')[-1]}"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user