Asset Pipeline v2 #145
@ -1,6 +1,5 @@
|
||||
import bpy
|
||||
from typing import Dict, Set
|
||||
from . import core # TODO DEBUG WHY THIS DOESN'T WORK
|
||||
from .naming import get_target_name, get_basename, get_name_with_asset_prefix
|
||||
from .util import get_storage_of_id
|
||||
from .transfer_data.transfer_util import transfer_data_add_entry
|
||||
|
@ -332,7 +332,7 @@ def init_material_slots(scene, obj):
|
||||
matches = check_transfer_data_entry(transfer_data, name, type_key)
|
||||
# Only add new ownership transfer_info if vertex group doesn't have an owner
|
||||
if len(matches) == 0:
|
||||
scene.asset_pipeline.add_temp_trasnfer_data(
|
||||
scene.asset_pipeline.add_temp_transfer_data(
|
||||
name=name,
|
||||
owner=task_layer_key,
|
||||
type=type_key,
|
||||
@ -578,7 +578,7 @@ def init_attributes(scene, obj):
|
||||
# Only add new ownership transfer_info if vertex group doesn't have an owner
|
||||
matches = check_transfer_data_entry(transfer_data, atttribute.name, type_key)
|
||||
if len(matches) == 0:
|
||||
scene.asset_pipeline.add_temp_trasnfer_data(
|
||||
scene.asset_pipeline.add_temp_transfer_data(
|
||||
name=atttribute.name,
|
||||
owner=task_layer_key,
|
||||
type=type_key,
|
||||
@ -648,7 +648,7 @@ def init_parent(scene, obj):
|
||||
matches = check_transfer_data_entry(transfer_data, name, type_key)
|
||||
# Only add new ownership transfer_info if vertex group doesn't have an owner
|
||||
if len(matches) == 0:
|
||||
scene.asset_pipeline.add_temp_trasnfer_data(
|
||||
scene.asset_pipeline.add_temp_transfer_data(
|
||||
name=name,
|
||||
owner=task_layer_key,
|
||||
type=type_key,
|
||||
|
@ -73,7 +73,7 @@ def transfer_info_init(scene, obj, list, type_key):
|
||||
# Only add new ownership transfer_info if vertex group doesn't have an owner
|
||||
matches = check_transfer_data_entry(transfer_data, item.name, type_key)
|
||||
if len(matches) == 0:
|
||||
scene.asset_pipeline.add_temp_trasnfer_data(
|
||||
scene.asset_pipeline.add_temp_transfer_data(
|
||||
name=item.name,
|
||||
owner=task_layer_key,
|
||||
type=type_key,
|
||||
|
@ -56,7 +56,7 @@ class AssetPipeline(bpy.types.PropertyGroup):
|
||||
name="Task Layer Name", items=constants.TASK_LAYER_TYPES_ENUM_ITEMS
|
||||
)
|
||||
|
||||
def add_temp_trasnfer_data(self, name, owner, type, obj):
|
||||
def add_temp_transfer_data(self, name, owner, type, obj):
|
||||
new_transfer_data = self.temp_transfer_data
|
||||
transfer_info = new_transfer_data.add()
|
||||
transfer_info.name = name
|
||||
|
Loading…
Reference in New Issue
Block a user