Asset Pipeline v2 #145
@ -12,7 +12,7 @@ TASK_LAYER_TYPES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# When creating a new asset, start in this task layer's file.
|
# When creating a new asset, start in this task layer's file.
|
||||||
STARTING_FILE = 'MODEL'
|
STARTING_FILE = 'MOD'
|
||||||
|
|
||||||
# Convert it to the format that EnumProperty.items wants:
|
# Convert it to the format that EnumProperty.items wants:
|
||||||
# List of 3-tuples, re-use name as description at 3rd element.
|
# List of 3-tuples, re-use name as description at 3rd element.
|
||||||
|
@ -90,7 +90,9 @@ class ASSETPIPE_OT_create_new_asset(bpy.types.Operator):
|
|||||||
for task_layer_key in constants.TASK_LAYER_TYPES.keys():
|
for task_layer_key in constants.TASK_LAYER_TYPES.keys():
|
||||||
if task_layer_key == "NONE":
|
if task_layer_key == "NONE":
|
||||||
continue
|
continue
|
||||||
name = self._name + "." + task_layer_key + ".blend"
|
name = (
|
||||||
|
self._name + "." + constants.TASK_LAYER_TYPES[task_layer_key] + ".blend"
|
||||||
|
)
|
||||||
task_layer_file = os.path.join(asset_path, name)
|
task_layer_file = os.path.join(asset_path, name)
|
||||||
asset_pipe.task_layer_name = task_layer_key
|
asset_pipe.task_layer_name = task_layer_key
|
||||||
if task_layer_key == constants.STARTING_FILE:
|
if task_layer_key == constants.STARTING_FILE:
|
||||||
|
Loading…
Reference in New Issue
Block a user