Skip to content

Commit c1896d7

Browse files
committed
Disable smoothing, bump version to 2.12.1
1 parent 37c24ff commit c1896d7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_policy(SET CMP0141 NEW)
33
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<CONFIG:Debug>,EditAndContinue,ProgramDatabase>" CACHE STRING "MSVC debug information format")
44
project(
55
NavKit
6-
VERSION 2.12.0
6+
VERSION 2.12.1
77
DESCRIPTION "An app to create NAVP and AIRG files for use with Hitman: World of Assassination"
88
LANGUAGES CXX)
99
set(CMAKE_CXX_STANDARD 20)

include/NavKit/NavKitConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#define NavKit_VERSION_MAJOR "2"
22
#define NavKit_VERSION_MINOR "12"
3-
#define NavKit_VERSION_PATCH "0"
3+
#define NavKit_VERSION_PATCH "1"

src/resource/glacier2obj.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,8 @@ def load_prim_mesh(prim, prim_name: str, mesh_index: int, load_textures=True):
13371337
layer = mesh.vertex_colors.new(name="Col")
13381338
mesh.color_attributes[layer.name].data.foreach_set("color", loop_cols)
13391339

1340+
mesh.polygons.foreach_set("use_smooth", [False] * len(mesh.polygons))
1341+
13401342
mesh.validate()
13411343
mesh.update()
13421344

@@ -2086,6 +2088,7 @@ def convex_hull(bm):
20862088

20872089
def finalize_mesh(bm, obj):
20882090
bm.to_mesh(obj.data)
2091+
obj.data.polygons.foreach_set("use_smooth", [False] * len(obj.data.polygons))
20892092
bm.free()
20902093

20912094

0 commit comments

Comments
 (0)