Asset Pipeline v2 #145
@ -40,7 +40,7 @@ def transfer_data_clean(obj):
|
|||||||
transfer_functions.vertex_groups_clean(obj)
|
transfer_functions.vertex_groups_clean(obj)
|
||||||
transfer_functions.modifiers_clean(obj)
|
transfer_functions.modifiers_clean(obj)
|
||||||
transfer_functions.constraints_clean(obj)
|
transfer_functions.constraints_clean(obj)
|
||||||
transfer_functions.material_slots_clean(obj)
|
# transfer_functions.material_slots_clean(obj)
|
||||||
transfer_functions.shape_keys_clean(obj)
|
transfer_functions.shape_keys_clean(obj)
|
||||||
transfer_functions.attribute_clean(obj)
|
transfer_functions.attribute_clean(obj)
|
||||||
transfer_functions.parent_clean(obj)
|
transfer_functions.parent_clean(obj)
|
||||||
@ -58,7 +58,7 @@ def transfer_data_is_missing(transfer_data_item) -> bool:
|
|||||||
return bool(
|
return bool(
|
||||||
transfer_functions.vertex_group_is_missing(transfer_data_item)
|
transfer_functions.vertex_group_is_missing(transfer_data_item)
|
||||||
or transfer_functions.modifier_is_missing(transfer_data_item)
|
or transfer_functions.modifier_is_missing(transfer_data_item)
|
||||||
or transfer_functions.material_slots_is_missing(transfer_data_item)
|
# or transfer_functions.material_slots_is_missing(transfer_data_item)
|
||||||
or transfer_functions.constraint_is_missing(transfer_data_item)
|
or transfer_functions.constraint_is_missing(transfer_data_item)
|
||||||
or transfer_functions.shape_key_is_missing(transfer_data_item)
|
or transfer_functions.shape_key_is_missing(transfer_data_item)
|
||||||
or transfer_functions.attribute_is_missing(transfer_data_item)
|
or transfer_functions.attribute_is_missing(transfer_data_item)
|
||||||
|
@ -291,8 +291,19 @@ def init_material_slots(scene, obj, use_default_owner: bool):
|
|||||||
name = constants.MATERIAL_TRANSFER_DATA_ITEM_NAME
|
name = constants.MATERIAL_TRANSFER_DATA_ITEM_NAME
|
||||||
transfer_data = obj.transfer_data_ownership
|
transfer_data = obj.transfer_data_ownership
|
||||||
|
|
||||||
|
material_objects = [
|
||||||
|
'ARMATURE',
|
||||||
|
'CURVE',
|
||||||
|
'GPENCIL',
|
||||||
|
'META',
|
||||||
|
'MESH',
|
||||||
|
'SURFACE',
|
||||||
|
'FONT',
|
||||||
|
'VOLUME',
|
||||||
|
]
|
||||||
|
|
||||||
# Only Execute if Material Slots exist on object
|
# Only Execute if Material Slots exist on object
|
||||||
if len(obj.material_slots) == 0:
|
if obj.type not in material_objects:
|
||||||
return
|
return
|
||||||
matches = check_transfer_data_entry(transfer_data, name, td_type_key)
|
matches = check_transfer_data_entry(transfer_data, name, td_type_key)
|
||||||
# Only add new ownership transfer_data_item if vertex group doesn't have an owner
|
# Only add new ownership transfer_data_item if vertex group doesn't have an owner
|
||||||
|
Loading…
Reference in New Issue
Block a user