Asset Pipeline v2 #145
@ -307,6 +307,9 @@ def transfer_constraint(constraint_name, target_obj, source_obj):
|
||||
):
|
||||
if target_constraint.name == name_prev:
|
||||
idx = target_mod_i + 1
|
||||
|
||||
# TODO use toggle visibility here
|
||||
if idx != i:
|
||||
with context.temp_override(object=target_obj):
|
||||
bpy.ops.constraint.move_to_index(
|
||||
constraint=constraint_new.name, index=idx
|
||||
|
Loading…
Reference in New Issue
Block a user