Asset Pipeline v2 #145
@ -257,8 +257,6 @@ def transfer_modifier(modifier_name, target_obj, source_obj):
|
||||
{"object": target_obj, "active_object": target_obj},
|
||||
modifier=mod.name,
|
||||
)
|
||||
if source_obj.animation_data is None:
|
||||
return
|
||||
fcurves = find_drivers(source_obj, 'modifiers', modifier_name)
|
||||
for fcurve in fcurves:
|
||||
copy_driver(from_fcurve=fcurve, target=target_obj)
|
||||
@ -328,8 +326,6 @@ def transfer_constraint(constraint_name, target_obj, source_obj):
|
||||
new_target.target = target_item.target
|
||||
new_target.subtarget = target_item.subtarget
|
||||
|
||||
if source_obj.animation_data is None:
|
||||
return
|
||||
fcurves = find_drivers(source_obj, 'constraints', constraint_name)
|
||||
|
||||
for fcurve in fcurves:
|
||||
|
Loading…
Reference in New Issue
Block a user