Asset Pipeline v2 #145
@ -2,6 +2,7 @@ import bpy
|
|||||||
|
|
||||||
from . import core, constants
|
from . import core, constants
|
||||||
from .transfer_data import transfer_ui
|
from .transfer_data import transfer_ui
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
class ASSETPIPE_sync(bpy.types.Panel):
|
class ASSETPIPE_sync(bpy.types.Panel):
|
||||||
@ -20,9 +21,11 @@ class ASSETPIPE_sync(bpy.types.Panel):
|
|||||||
layout.operator("assetpipe.create_new_asset")
|
layout.operator("assetpipe.create_new_asset")
|
||||||
# layout.operator("")
|
# layout.operator("")
|
||||||
return
|
return
|
||||||
layout.label(
|
|
||||||
text=f"Active Task Layer: {context.collection.name.split('.')[-1]}"
|
if not Path(bpy.data.filepath).exists:
|
||||||
)
|
layout.label(text="File is not saved", icon="ERROR")
|
||||||
|
return
|
||||||
|
|
||||||
layout.prop(asset_pipe, "asset_collection", text="Asset")
|
layout.prop(asset_pipe, "asset_collection", text="Asset")
|
||||||
layout.label(text="Test UI")
|
layout.label(text="Test UI")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user