mirror of
https://github.com/Relintai/terraman.git
synced 2025-04-21 21:41:20 +02:00
If the chunk dosen't need a material then set has_cache_key to false.
This commit is contained in:
parent
06ade87fac
commit
3a51d4c044
@ -51,7 +51,7 @@ void TerramanLibraryMergerPCM::_material_cache_get_key(Ref<TerraChunk> chunk) {
|
||||
|
||||
if (!ch) {
|
||||
chunk->material_cache_key_set(0);
|
||||
chunk->material_cache_key_has_set(true);
|
||||
chunk->material_cache_key_has_set(false);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -81,6 +81,13 @@ void TerramanLibraryMergerPCM::_material_cache_get_key(Ref<TerraChunk> chunk) {
|
||||
}
|
||||
}
|
||||
|
||||
if (surfaces.size() == 0) {
|
||||
chunk->material_cache_key_set(0);
|
||||
chunk->material_cache_key_has_set(false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
surfaces.sort();
|
||||
|
||||
String hstr;
|
||||
|
Loading…
Reference in New Issue
Block a user