From e5bae8fb7eb15f6cbe0bb8023c8e7389471967be Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 9 Feb 2022 00:37:19 +0100 Subject: [PATCH] Remove unnecessary check. --- library/voxel_surface_merger.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/voxel_surface_merger.cpp b/library/voxel_surface_merger.cpp index e6d1ed6..02f4c83 100644 --- a/library/voxel_surface_merger.cpp +++ b/library/voxel_surface_merger.cpp @@ -45,10 +45,6 @@ void VoxelSurfaceMerger::set_texture(const VoxelSurfaceSides side, const Ref(_library); - - ERR_FAIL_COND(lib == NULL); - for (int i = 0; i < VOXEL_SIDES_COUNT; ++i) { if (!_regions[i].is_valid()) { _rects[i] = Rect2();