Asset Pipeline v2 #145
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user