Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 3598671588 - Show all commits

View File

@ -378,13 +378,13 @@ def shape_keys_clean(obj):
return return
transfer_data = obj.transfer_data_ownership transfer_data = obj.transfer_data_ownership
for shape_key in obj.data.shape_keys.key_blocks: for shape_key in obj.data.shape_keys.key_blocks:
if not asset_suffix.get_basename(shape_key.name) in transfer_data.keys():
obj.shape_key_remove(shape_key)
# Move Shape Keys relative to themselves to the top (usually basis key) # Move Shape Keys relative to themselves to the top (usually basis key)
if shape_key.relative_key == shape_key: if shape_key.relative_key == shape_key:
shape_key_move(bpy.context, obj, shape_key.name) shape_key_move(bpy.context, obj, shape_key.name)
if not asset_suffix.get_basename(shape_key.name) in transfer_data.keys():
obj.shape_key_remove(shape_key)
def shape_key_is_missing(transfer_info): def shape_key_is_missing(transfer_info):
return transfer_core.transfer_info_is_missing( return transfer_core.transfer_info_is_missing(