Asset Pipeline v2 #145
@ -6,7 +6,7 @@ avaliable task layers from the task_layer_defaults.json file that needs to be cr
|
||||
"""
|
||||
|
||||
|
||||
class ASSET_NEW(bpy.types.PropertyGroup):
|
||||
class AssetNew(bpy.types.PropertyGroup):
|
||||
"""Properties needed to create new asset file/folders"""
|
||||
|
||||
dir: bpy.props.StringProperty(
|
||||
@ -17,7 +17,7 @@ class ASSET_NEW(bpy.types.PropertyGroup):
|
||||
name: bpy.props.StringProperty(name="Name", description="Name for new Asset")
|
||||
|
||||
|
||||
class ASSET_FILE_STATUS(bpy.types.PropertyGroup):
|
||||
class AssetFileStatus(bpy.types.PropertyGroup):
|
||||
"""Properties to manage the status of asset pipeline files"""
|
||||
|
||||
is_asset_pipeline_file: bpy.props.BoolProperty(
|
||||
@ -36,7 +36,7 @@ class ASSET_FILE_STATUS(bpy.types.PropertyGroup):
|
||||
from . import constants
|
||||
|
||||
|
||||
class ASSET_TRANSFER_DATA(bpy.types.PropertyGroup):
|
||||
class AssetTransferData(bpy.types.PropertyGroup):
|
||||
"""Properties to track transferable data on an object"""
|
||||
|
||||
owner: bpy.props.EnumProperty(
|
||||
@ -49,7 +49,7 @@ class ASSET_TRANSFER_DATA(bpy.types.PropertyGroup):
|
||||
)
|
||||
|
||||
|
||||
class ASSET_TRANSFER_DATA_TEMP(bpy.types.PropertyGroup):
|
||||
class AssetTransferDataTemp(bpy.types.PropertyGroup):
|
||||
"""Class used when finding new ownership data so it can be drawn
|
||||
with the same method as the existing ownership data from ASSET_TRANSFER_DATA"""
|
||||
|
||||
@ -65,10 +65,10 @@ class ASSET_TRANSFER_DATA_TEMP(bpy.types.PropertyGroup):
|
||||
|
||||
|
||||
classes = (
|
||||
ASSET_TRANSFER_DATA,
|
||||
ASSET_FILE_STATUS,
|
||||
ASSET_TRANSFER_DATA_TEMP,
|
||||
ASSET_NEW,
|
||||
AssetTransferData,
|
||||
AssetFileStatus,
|
||||
AssetTransferDataTemp,
|
||||
AssetNew,
|
||||
)
|
||||
|
||||
|
||||
@ -76,17 +76,17 @@ def register():
|
||||
for i in classes:
|
||||
bpy.utils.register_class(i)
|
||||
bpy.types.Object.transfer_data_ownership = bpy.props.CollectionProperty(
|
||||
type=ASSET_TRANSFER_DATA
|
||||
type=AssetTransferData
|
||||
)
|
||||
bpy.types.Scene.temp_transfer_data_ownership = bpy.props.CollectionProperty(
|
||||
type=ASSET_TRANSFER_DATA_TEMP
|
||||
type=AssetTransferDataTemp
|
||||
)
|
||||
bpy.types.Scene.asset_status = bpy.props.PointerProperty(type=ASSET_FILE_STATUS)
|
||||
bpy.types.Scene.asset_status = bpy.props.PointerProperty(type=AssetFileStatus)
|
||||
bpy.types.Object.asset_id_owner = bpy.props.EnumProperty(
|
||||
name="ID Owner",
|
||||
items=constants.TASK_LAYER_TYPES,
|
||||
)
|
||||
bpy.types.Scene.asset_new = bpy.props.PointerProperty(type=ASSET_NEW)
|
||||
bpy.types.Scene.asset_new = bpy.props.PointerProperty(type=AssetNew)
|
||||
|
||||
|
||||
def unregister():
|
||||
|
Loading…
Reference in New Issue
Block a user