From 1a395d3dc486ab531e851ac336f736ceeee38383 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 2 Aug 2021 23:19:40 +0200 Subject: [PATCH] Store the id in the id property for the cached surfaces. --- library/terraman_library_merger_pcm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/library/terraman_library_merger_pcm.cpp b/library/terraman_library_merger_pcm.cpp index d85cede..b467fa3 100644 --- a/library/terraman_library_merger_pcm.cpp +++ b/library/terraman_library_merger_pcm.cpp @@ -135,6 +135,7 @@ void TerramanLibraryMergerPCM::_material_cache_get_key(Ref chunk) { Ref nms = ms->duplicate(); nms->set_library(Ref(this)); + nms->set_id(s); cache->voxel_surface_add(nms); }