From b79bfec5d01858140e3cd124a9cb925dcec311d2 Mon Sep 17 00:00:00 2001 From: Simone Barbieri Date: Wed, 5 Jun 2024 16:40:07 +0100 Subject: [PATCH] Fix undeclared variable --- client/ayon_core/hosts/unreal/plugins/load/load_animation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/ayon_core/hosts/unreal/plugins/load/load_animation.py b/client/ayon_core/hosts/unreal/plugins/load/load_animation.py index 286e7f94df..4199469a6e 100644 --- a/client/ayon_core/hosts/unreal/plugins/load/load_animation.py +++ b/client/ayon_core/hosts/unreal/plugins/load/load_animation.py @@ -254,6 +254,8 @@ class AnimationFBXLoader(plugin.Loader): path = self.filepath_from_context(context) libpath = path.replace(".fbx", ".json") + master_level = None + # check if json file exists. if os.path.exists(libpath): ar = unreal.AssetRegistryHelpers.get_asset_registry()