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 81c0249b91 - Show all commits

View File

@ -307,10 +307,13 @@ def transfer_constraint(constraint_name, target_obj, source_obj):
): ):
if target_constraint.name == name_prev: if target_constraint.name == name_prev:
idx = target_mod_i + 1 idx = target_mod_i + 1
with context.temp_override(object=target_obj):
bpy.ops.constraint.move_to_index( # TODO use toggle visibility here
constraint=constraint_new.name, index=idx if idx != i:
) with context.temp_override(object=target_obj):
bpy.ops.constraint.move_to_index(
constraint=constraint_new.name, index=idx
)
constraint_target = target_obj.constraints.get(constraint.name) constraint_target = target_obj.constraints.get(constraint.name)
props = [ props = [
p.identifier for p in constraint.bl_rna.properties if not p.is_readonly p.identifier for p in constraint.bl_rna.properties if not p.is_readonly