Skip to content

Commit df1a4f7

Browse files
committed
Bump version to 2.3.1, fix 'Extract and Build' menu items
1 parent 6d4d419 commit df1a4f7

5 files changed

Lines changed: 8 additions & 9 deletions

File tree

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.3.0
6+
VERSION 2.3.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 "3"
3-
#define NavKit_VERSION_PATCH "0"
3+
#define NavKit_VERSION_PATCH "1"

include/NavKit/module/Obj.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,5 @@ class Obj {
106106

107107
void finalizeExtractAlocsOrPrims();
108108

109-
private:
110-
void extractAlocsOrPrims();
109+
void extractAlocsOrPrimsAndStartObjBuild();
111110
};

src/module/Obj.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void Obj::buildObj() {
194194
});
195195
}
196196

197-
void Obj::extractAlocsOrPrims() {
197+
void Obj::extractAlocsOrPrimsAndStartObjBuild() {
198198
Settings &settings = Settings::getInstance();
199199
std::string retailFolder = "\"";
200200
retailFolder += settings.hitmanFolder;
@@ -444,16 +444,16 @@ bool Obj::canBuildObjFromScene() const {
444444
bool Obj::canBuildBlendFromScene() const {
445445
// Currently this is the same as Obj::canBuildObjFromScene.
446446
// Its expected this may change if the blend export includes features OBJ can't handle - like lights.
447-
return Obj::canBuildObjFromScene();
447+
return canBuildObjFromScene();
448448
}
449449

450450
void Obj::handleBuildObjFromSceneClicked() {
451-
backgroundWorker.emplace(&Obj::extractAlocsOrPrims, this);
451+
backgroundWorker.emplace(&Obj::extractAlocsOrPrimsAndStartObjBuild, this);
452452
}
453453

454454
void Obj::handleBuildBlendFromSceneClicked() {
455455
blendFileOnlyExtract = true;
456-
backgroundWorker.emplace(&Obj::extractAlocsOrPrims, this);
456+
backgroundWorker.emplace(&Obj::extractAlocsOrPrimsAndStartObjBuild, this);
457457
}
458458

459459
void Obj::handleBuildObjFromNavpClicked() {

src/module/SceneExtract.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void SceneExtract::finalizeExtractScene() {
129129
const std::string &fileNameString = sceneFile;
130130
sceneScoped.lastLoadSceneFile = sceneFile;
131131
if ((alsoBuildObj || alsoBuildAll) && !obj.startedObjGeneration) {
132-
obj.buildObj();
132+
obj.extractAlocsOrPrimsAndStartObjBuild();
133133
}
134134
Logger::log(NK_INFO, ("Done loading nav.json file: '" + fileNameString + "'.").c_str());
135135
Menu::updateMenuState();

0 commit comments

Comments
 (0)