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 adbbcebff9 - Show all commits

View File

@ -57,17 +57,11 @@ def transfer_vertex_group(
if not source_obj.vertex_groups.get(vertex_group_name):
print(f"ERROR Vertex Group {vertex_group_name} not found in {source_obj.name}")
return
vgroups = source_obj.vertex_groups
kd_tree = build_kdtree(source_obj.data)
tgt_vg = target_obj.vertex_groups.get(vertex_group_name)
if tgt_vg:
target_obj.vertex_groups.remove(tgt_vg)
vert_influence_map = build_vert_influence_map(
source_obj, target_obj, kd_tree, 2
# TODO DEBUG WHY THIS ISN'T WORKING
precalc_and_transfer_single_group(
source_obj, target_obj, vertex_group_name, expand=2
)
transfer_vertex_groups(source_obj, target_obj, vert_influence_map, vgroups)
def precalc_and_transfer_single_group(source_obj, target_obj, vgroup_name, expand=2):
@ -92,7 +86,7 @@ def precalc_and_transfer_single_group(source_obj, target_obj, vgroup_name, expan
source_obj,
target_obj,
vert_influence_map,
vgroups=[source_obj.vertex_groups[vgroup_name]],
[source_obj.vertex_groups[vgroup_name]],
)
@ -209,6 +203,7 @@ def transfer_vertex_groups(obj_from, obj_to, vert_influence_map, src_vgroups):
target_vg = obj_to.vertex_groups.new(name=vg_name)
target_vg.add([dest_vert.index], vgroup_weights[vg_name], 'REPLACE')
# MODIFIERS
def modifiers_clean(obj):
transfer_data_clean(