diff --git a/library/terraman_library_merger.cpp b/library/terraman_library_merger.cpp index b39c58f..4ae11fe 100644 --- a/library/terraman_library_merger.cpp +++ b/library/terraman_library_merger.cpp @@ -144,7 +144,7 @@ void TerramanLibraryMerger::set_voxel_surfaces(const Vector &surfaces) Ref surface = Ref(surfaces[i]); if (surface.is_valid()) { - surface->set_library(this); + surface->set_library(Ref(this)); } _voxel_surfaces.push_back(surface);