From d99577365c6bd1fa36614a6d8db24adbd3a95d2c Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 8 Apr 2025 08:31:53 +0200 Subject: [PATCH] Call chunk's enter_tree and set voxel world on entering the tree in TerrainWorld. --- modules/terraman/world/terrain_world.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/terraman/world/terrain_world.cpp b/modules/terraman/world/terrain_world.cpp index 5da4f1020..24359c2df 100644 --- a/modules/terraman/world/terrain_world.cpp +++ b/modules/terraman/world/terrain_world.cpp @@ -1571,6 +1571,9 @@ void TerrainWorld::_notification(int p_what) { if (chunk.is_valid()) { chunk_setup(chunk); + chunk->set_voxel_world(this); + chunk->enter_tree(); + chunk->build(); } }