Skip to content

Commit ae532d0

Browse files
authored
Fix aloc import for combo primitive data types (#74)
1 parent 614e7c4 commit ae532d0

7 files changed

Lines changed: 269 additions & 226 deletions

File tree

.idea/NavKit.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.5.2
6+
VERSION 2.5.3
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 "5"
3-
#define NavKit_VERSION_PATCH "2"
3+
#define NavKit_VERSION_PATCH "3"

include/NavKit/module/Obj.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Obj {
4141
bool blendFileOnlyExtract;
4242
bool glacier2ObjDebugLogsEnabled;
4343
bool errorBuilding;
44+
bool skipExtractingAlocsOrPrims;
4445
bool errorExtracting;
4546
bool extractingAlocsOrPrims;
4647
bool doneExtractingAlocsOrPrims;

src/module/Obj.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Obj::Obj() : loadObjName("Load Obj"),
3737
errorBuilding(false),
3838
errorExtracting(false),
3939
extractingAlocsOrPrims(false),
40+
skipExtractingAlocsOrPrims(false),
4041
blendFileOnlyExtract(false),
4142
doneExtractingAlocsOrPrims(false),
4243
doObjHitTest(false),
@@ -220,6 +221,12 @@ void Obj::buildObj() {
220221
}
221222

222223
void Obj::extractAlocsOrPrimsAndStartObjBuild() {
224+
if (skipExtractingAlocsOrPrims) {
225+
Logger::log(NK_INFO, "Skipping extraction of Alocs / Prims from Rpkg files.");
226+
doneExtractingAlocsOrPrims = true;
227+
Menu::updateMenuState();
228+
return;
229+
}
223230
const Scene &scene = Scene::getInstance();
224231
const std::string &fileNameString = scene.lastLoadSceneFile;
225232
NavKitSettings &navKitSettings = NavKitSettings::getInstance();
@@ -262,7 +269,7 @@ void Obj::extractAlocsOrPrimsAndStartObjBuild() {
262269
std::jthread commandThread(
263270
&CommandRunner::runCommand, CommandRunner::getInstance(), command,
264271
"Glacier2ObjExtract.log", [this] {
265-
Logger::log(NK_INFO, "Finished extracting Alocs / Prims from Rpkg files file.");
272+
Logger::log(NK_INFO, "Finished extracting Alocs / Prims from Rpkg files.");
266273
doneExtractingAlocsOrPrims = true;
267274
Menu::updateMenuState();
268275
}, [this] {

0 commit comments

Comments
 (0)