From 101f83234a32c9638e309d7640d79a23fd770d5f Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Thu, 25 Apr 2019 00:58:23 +0100 Subject: [PATCH] Don't logspam if terrain library is not set --- voxel_terrain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/voxel_terrain.cpp b/voxel_terrain.cpp index dd68455..ffbf8e5 100644 --- a/voxel_terrain.cpp +++ b/voxel_terrain.cpp @@ -517,6 +517,11 @@ static inline bool is_mesh_empty(Ref mesh_ref) { void VoxelTerrain::_process() { + // TODO Should be able to run without library, tho! + if (_library.is_null()) { + return; + } + OS &os = *OS::get_singleton(); Engine &engine = *Engine::get_singleton();