Asset Pipeline v2 #145
@ -183,8 +183,8 @@ class ASSETPIPE_OT_create_new_asset(bpy.types.Operator):
|
|||||||
|
|
||||||
def _task_layer_file_create(self, context, task_layer_key, asset_directory):
|
def _task_layer_file_create(self, context, task_layer_key, asset_directory):
|
||||||
name = self._name + "." + task_layer_key.lower() + ".blend"
|
name = self._name + "." + task_layer_key.lower() + ".blend"
|
||||||
|
|
||||||
set_local_task_layers([task_layer_key])
|
set_local_task_layers([task_layer_key])
|
||||||
|
self._task_layer_collections_set(context, self._asset_pipe.asset_collection)
|
||||||
|
|
||||||
task_layer_file = os.path.join(asset_directory, name)
|
task_layer_file = os.path.join(asset_directory, name)
|
||||||
bpy.ops.wm.save_as_mainfile(filepath=task_layer_file, copy=True)
|
bpy.ops.wm.save_as_mainfile(filepath=task_layer_file, copy=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user