Asset Pipeline v2 #145
@ -44,11 +44,10 @@ def transfer_data_add_entry(
|
|||||||
return transfer_data_item
|
return transfer_data_item
|
||||||
|
|
||||||
|
|
||||||
# TODO Test if Clean and Missing are redudent functions
|
|
||||||
def transfer_data_clean(
|
def transfer_data_clean(
|
||||||
obj: bpy.types.Object, data_list: bpy.types.CollectionProperty, td_type_key: str
|
obj: bpy.types.Object, data_list: bpy.types.CollectionProperty, td_type_key: str
|
||||||
):
|
):
|
||||||
"""Remove transfer data entries if the corrisponding data doesn't exist
|
"""Removes data if a transfer_data_item doesn't exist but the data does exist
|
||||||
Args:
|
Args:
|
||||||
obj (bpy.types.Object): Object containing transfer data
|
obj (bpy.types.Object): Object containing transfer data
|
||||||
data_list (bpy.types.CollectionProperty): Collection Property containing a type of possible transfer data e.g. obj.modifiers
|
data_list (bpy.types.CollectionProperty): Collection Property containing a type of possible transfer data e.g. obj.modifiers
|
||||||
@ -67,7 +66,7 @@ def transfer_data_clean(
|
|||||||
def transfer_data_item_is_missing(
|
def transfer_data_item_is_missing(
|
||||||
transfer_data_item, data_list: bpy.types.CollectionProperty, td_type_key: str
|
transfer_data_item, data_list: bpy.types.CollectionProperty, td_type_key: str
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Returns true if a transfer_data_item does not exist
|
"""Returns true if a transfer_data_item exists the data doesn't exist
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
transfer_data_item (_type_): Item of Transfer Data
|
transfer_data_item (_type_): Item of Transfer Data
|
||||||
|
Loading…
Reference in New Issue
Block a user