Skip to content

Commit

Permalink
Fixed issue where numba would crash due to the logger object having a…
Browse files Browse the repository at this point in the history
…n unknown type.
  • Loading branch information
AntoineRichard committed Oct 10, 2024
1 parent ab21910 commit d79536b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ 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)
prev_indices = nb.typed.Dict.empty(key_type=point2, value_type=nb.types.int32)
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
Expand Down

0 comments on commit d79536b

Please sign in to comment.