Asset Pipeline: Improve Performance #235
@ -57,8 +57,7 @@ class AssetTransferDataTemp(bpy.types.PropertyGroup):
|
|||||||
items=constants.TRANSFER_DATA_TYPES_ENUM_ITEMS,
|
items=constants.TRANSFER_DATA_TYPES_ENUM_ITEMS,
|
||||||
)
|
)
|
||||||
surrender: bpy.props.BoolProperty(name="Surrender Ownership", default=False)
|
surrender: bpy.props.BoolProperty(name="Surrender Ownership", default=False)
|
||||||
obj: bpy.props.PointerProperty(type=bpy.types.Object)
|
obj_name: bpy.props.StringProperty(name="Object Name", default="")
|
||||||
target_obj: bpy.props.PointerProperty(type=bpy.types.Object)
|
|
||||||
|
|
||||||
def check_transfer_data_entry(self) -> set:
|
def check_transfer_data_entry(self) -> set:
|
||||||
"""
|
"""
|
||||||
@ -125,12 +124,12 @@ class AssetPipeline(bpy.types.PropertyGroup):
|
|||||||
|
|
||||||
temp_transfer_data: bpy.props.CollectionProperty(type=AssetTransferDataTemp)
|
temp_transfer_data: bpy.props.CollectionProperty(type=AssetTransferDataTemp)
|
||||||
|
|
||||||
def add_temp_transfer_data(self, name, owner, type, obj_name, surrender):
|
def add_temp_transfer_data(self, name, owner, type_key, obj_name, surrender):
|
||||||
new_transfer_data = self.temp_transfer_data
|
new_transfer_data = self.temp_transfer_data
|
||||||
transfer_data_item = new_transfer_data.add()
|
transfer_data_item = new_transfer_data.add()
|
||||||
transfer_data_item.name = name
|
transfer_data_item.name = name
|
||||||
transfer_data_item.owner = owner
|
transfer_data_item.owner = owner
|
||||||
transfer_data_item.type = type
|
transfer_data_item.type = type_key
|
||||||
transfer_data_item.obj_name = obj_name
|
transfer_data_item.obj_name = obj_name
|
||||||
transfer_data_item.surrender = surrender
|
transfer_data_item.surrender = surrender
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user