Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Release v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
PredatorCZ committed May 1, 2020
1 parent d37c547 commit 6c2de49
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.3)

project(RevilMax VERSION 1.3)
project(RevilMax VERSION 1.4)

set (RevilLibLibraryPath ../RevilLib_${CMAKE_GENERATOR_PLATFORM})

Expand Down
24 changes: 18 additions & 6 deletions src/REEngineImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ClassDesc2 *GetREEngineImportDesc() { return &REEngineImportDesc; }
//--- HavokImp -------------------------------------------------------
REEngineImport::REEngineImport() {}

int REEngineImport::ExtCount() { return 6; }
int REEngineImport::ExtCount() { return 8; }

const TCHAR *REEngineImport::Ext(int n) {
switch (n) {
Expand All @@ -89,6 +89,10 @@ const TCHAR *REEngineImport::Ext(int n) {
return _T("motlist.99");
case 5:
return _T("mot.78");
case 6:
return _T("motlist.60");
case 7:
return _T("mot.43");
default:
return nullptr;
}
Expand Down Expand Up @@ -316,7 +320,7 @@ int REEngineImport::DoImport(const TCHAR *fileName,
if (flags[IDC_RD_ANISEL_checked]) {
cMotion = motionList->At(IDC_CB_MOTION_index);

if (!skel) {
if (!skel && skelList->Size()) {
skel = skelList->At(IDC_CB_MOTION_index);
}
} else {
Expand All @@ -326,11 +330,16 @@ int REEngineImport::DoImport(const TCHAR *fileName,
printline("Sequencer not found, dumping animation ranges:");

for (auto &m : *motionList) {
uni::Skeleton *_skel = skel ? skel : skelList->At(i);
if (skelList->Size()) {
uni::Skeleton *_skel = skel ? skel : skelList->At(i);

LoadSkeleton(_skel, lastTime);
}

LoadSkeleton(_skel, lastTime);
TimeValue nextTime = LoadMotion(&m, lastTime);
printer << std::to_string(motionNames[i]) << ": " << lastTime << ", " << nextTime >> 1;
printer << std::to_string(motionNames[i]) << ": " << lastTime << ", "
<< nextTime >>
1;
lastTime = nextTime;
i++;
}
Expand All @@ -351,7 +360,10 @@ int REEngineImport::DoImport(const TCHAR *fileName,
return TRUE;
}

LoadSkeleton(skel);
if (skel) {
LoadSkeleton(skel);
}

LoadMotion(cMotion);

setlocale(LC_NUMERIC, oldLocale);
Expand Down

0 comments on commit 6c2de49

Please sign in to comment.