mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-14 20:00:07 +01:00
Clear the material cache data in TerrainChunk::_exit_tree().
This commit is contained in:
parent
a2784fd2a0
commit
d0fa4ba194
@ -1250,6 +1250,9 @@ void TerrainChunk::_exit_tree() {
|
||||
if (_library.is_valid() && _library->supports_caching()) {
|
||||
if (material_cache_key_has()) {
|
||||
_library->material_cache_unref(material_cache_key_get());
|
||||
|
||||
material_cache_key_set(0);
|
||||
material_cache_key_has_set(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user