mirror of
https://github.com/Relintai/terraman.git
synced 2025-05-01 22:07:59 +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) {
|
if (!ch) {
|
||||||
chunk->material_cache_key_set(0);
|
chunk->material_cache_key_set(0);
|
||||||
chunk->material_cache_key_has_set(true);
|
chunk->material_cache_key_has_set(false);
|
||||||
|
|
||||||
return;
|
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();
|
surfaces.sort();
|
||||||
|
|
||||||
String hstr;
|
String hstr;
|
||||||
|
Loading…
Reference in New Issue
Block a user