From d79536b66491457251384ae65d276203991c0ff0 Mon Sep 17 00:00:00 2001 From: AntoineRichard Date: Thu, 10 Oct 2024 12:49:09 +0200 Subject: [PATCH] Fixed issue where numba would crash due to the logger object having an unknown type. --- .../large_scale_terrain/geometry_clipmaps_numba.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terrain_management/large_scale_terrain/geometry_clipmaps_numba.py b/src/terrain_management/large_scale_terrain/geometry_clipmaps_numba.py index 5680601..3b5fd8b 100644 --- a/src/terrain_management/large_scale_terrain/geometry_clipmaps_numba.py +++ b/src/terrain_management/large_scale_terrain/geometry_clipmaps_numba.py @@ -147,7 +147,7 @@ def _build_mesh(start_level, num_levels, meshBaseLODExtentHeightfieldTexels): coordinates, and list of indices in the mesh backbone. """ - logger.info("Building the mesh backbone, this may take time...") + print("Building the mesh backbone, this may take time...") points = nb.typed.List.empty_list(point3) uvs = nb.typed.List.empty_list(point2) indices = nb.typed.List.empty_list(nb.types.int32) @@ -155,7 +155,7 @@ def _build_mesh(start_level, num_levels, meshBaseLODExtentHeightfieldTexels): new_indices = nb.typed.Dict.empty(key_type=point2, value_type=nb.types.int32) index_count = 0 for level in range(start_level, num_levels): - logger.info("Generating level " + str(level + 1) + " out of " + str(num_levels) + "...") + print("Generating level " + str(level + 1) + " out of " + str(num_levels) + "...") step = 1 << level if level == 0: prevStep = 0