From 82be9ea1db6a678a991a16c68be26df482ba5912 Mon Sep 17 00:00:00 2001 From: Alberto Torres Date: Thu, 5 Sep 2024 00:24:08 +0200 Subject: [PATCH] Fix issue when trying to load another .blend with same loader after it failed. --- src/loaders/blend.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loaders/blend.nim b/src/loaders/blend.nim index 5cd4605..f98bc0f 100644 --- a/src/loaders/blend.nim +++ b/src/loaders/blend.nim @@ -92,8 +92,8 @@ proc registerBlendLoader*(engine: MyouEngine) = method close*(self: BlendLoader) = if self.resource != nil: self.resource = nil - self.blend_file = nil - self.cached_materials.clear() + self.blend_file = nil + self.cached_materials.clear() method openAssetFile*(self: BlendLoader, path: string) = if self.resource != nil: