Fix issue when trying to load another .blend with same loader after it failed.
This commit is contained in:
parent
7f0ebc122a
commit
82be9ea1db
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue