From 3cb0edf7687dd6c3c11a4b5c962d6daa08c7ae59 Mon Sep 17 00:00:00 2001 From: Cyprien CAILLOT Date: Wed, 11 Sep 2024 14:52:08 +0200 Subject: [PATCH] Bug: Avoid variable re declaration bug on Unreal --- openpype/hosts/unreal/plugins/load/load_animation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/hosts/unreal/plugins/load/load_animation.py b/openpype/hosts/unreal/plugins/load/load_animation.py index 7ed85ee4111..091315df9d4 100644 --- a/openpype/hosts/unreal/plugins/load/load_animation.py +++ b/openpype/hosts/unreal/plugins/load/load_animation.py @@ -216,8 +216,8 @@ def load(self, context, name, namespace, options=None): if (s.get_class() == MovieSceneSkeletalAnimationSection.static_class())] - for s in sections: - s.params.set_editor_property('animation', animation) + for section in sections: + section.params.set_editor_property('animation', animation) # Create Asset Container unreal_pipeline.create_container(