Fix issue when trying to load another .blend with same loader after it failed.

This commit is contained in:
Alberto Torres 2024-09-05 00:24:08 +02:00
parent 7f0ebc122a
commit 82be9ea1db

View file

@ -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: