Store the id in the id property for the cached surfaces.

This commit is contained in:
Relintai 2021-08-02 23:19:40 +02:00
parent 3a51d4c044
commit 1a395d3dc4

View File

@ -135,6 +135,7 @@ void TerramanLibraryMergerPCM::_material_cache_get_key(Ref<TerraChunk> chunk) {
Ref<TerraSurfaceMerger> nms = ms->duplicate(); Ref<TerraSurfaceMerger> nms = ms->duplicate();
nms->set_library(Ref<TerramanLibraryMergerPCM>(this)); nms->set_library(Ref<TerramanLibraryMergerPCM>(this));
nms->set_id(s);
cache->voxel_surface_add(nms); cache->voxel_surface_add(nms);
} }