Fix undeclared variable

This commit is contained in:
Simone Barbieri 2024-06-05 16:40:07 +01:00
parent 80fabae528
commit b79bfec5d0

View file

@ -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()