Asset Pipeline: Only Create Active Index Map on Mesh Objects #203

Merged
Nick Alberelli merged 1 commits from TinyNick/blender-studio-pipeline:fix/asset-pipe-bug-active-index into main 2024-01-15 15:06:59 +01:00
Showing only changes of commit 0c6802933e - Show all commits

View File

@ -286,6 +286,8 @@ class AssetTransferMapping:
if temp_transfer_data_item.type != constants.MATERIAL_SLOT_KEY: if temp_transfer_data_item.type != constants.MATERIAL_SLOT_KEY:
continue continue
if source_obj.type != 'MESH':
continue
active_uv_name = source_obj.data.uv_layers.active.name if source_obj.data.uv_layers.active else '' active_uv_name = source_obj.data.uv_layers.active.name if source_obj.data.uv_layers.active else ''
active_color_attribute_name = source_obj.data.color_attributes.active_color_name active_color_attribute_name = source_obj.data.color_attributes.active_color_name