From 54e9a2294652dc7ceceb1c2be6487385c02cba4a Mon Sep 17 00:00:00 2001 From: Tazpn <tazpn@users.sourceforge.net> Date: Mon, 18 Jun 2007 03:23:47 +0000 Subject: [PATCH] Fix for gmax and max 5 bones so that they at least appear even if not 100% correctly. --- MaxNifTools.ini | 4 ++-- MaxNifTools.iss | 8 ++++---- NifCommon/NifVersion.h | 4 ++-- NifImport/ImportSkeleton.cpp | 5 +++++ 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/MaxNifTools.ini b/MaxNifTools.ini index ff4a2a6..a7036e6 100644 --- a/MaxNifTools.ini +++ b/MaxNifTools.ini @@ -137,8 +137,8 @@ BipedTrianglePelvis=0 RemoveUnusedImportedBones=0 ; Minimum Bone Width / Maximum Bone Width / Ratio of Width to Length MinBoneWidth=0.001 -MaxBoneWidth=0.1 -BoneWidthToLengthRatio=0.01 +MaxBoneWidth=5 +BoneWidthToLengthRatio=0.25 ; Force nub to point back to parent at expense of loss of rotation data. Default: 1 ForceRotation=0 ; DefaultName for Skeletons (use if in same directory as imported nif) diff --git a/MaxNifTools.iss b/MaxNifTools.iss index 784b892..92987fa 100644 --- a/MaxNifTools.iss +++ b/MaxNifTools.iss @@ -74,10 +74,10 @@ Source: "Staging\Release - Max 9\NifPlugins.dlu"; DestDir: "{code:InstallPath|ma Source: "Staging\Release - Max 9\MaxNifTools.ini"; DestDir: "{code:InstallPath|max9}{\}plugcfg"; Components: "max9"; Flags: ignoreversion; Source: "Staging\Release - Max 9\MaxNifTools.ini"; DestDir: "{localappdata}{\}Autodesk\3dsmax\9 - 32bit\enu\plugcfg"; Components: "max9"; Flags: ignoreversion; -Source: "Staging\x64\Release - Max 9\MaxNifPlugins_Readme.txt"; DestDir: "{code:InstallPath|max9x64}"; Components: "max9x64"; Flags: isreadme ignoreversion; -Source: "Staging\x64\Release - Max 9\NifPlugins.dlu"; DestDir: "{code:InstallPath|max9x64}{\}plugins"; Components: "max9x64"; Flags: ignoreversion; -Source: "Staging\x64\Release - Max 9\MaxNifTools.ini"; DestDir: "{code:InstallPath|max9x64}{\}plugcfg"; Components: "max9x64"; Flags: ignoreversion; -Source: "Staging\x64\Release - Max 9\MaxNifTools.ini"; DestDir: "{localappdata}{\}Autodesk\3dsmax\9 - 64bit\enu\plugcfg"; Components: "max9x64"; Flags: ignoreversion; +Source: "Staging\Release - Max 9 - x64\MaxNifPlugins_Readme.txt"; DestDir: "{code:InstallPath|max9x64}"; Components: "max9x64"; Flags: isreadme ignoreversion; +Source: "Staging\Release - Max 9 - x64\NifPlugins.dlu"; DestDir: "{code:InstallPath|max9x64}{\}plugins"; Components: "max9x64"; Flags: ignoreversion; +Source: "Staging\Release - Max 9 - x64\MaxNifTools.ini"; DestDir: "{code:InstallPath|max9x64}{\}plugcfg"; Components: "max9x64"; Flags: ignoreversion; +Source: "Staging\Release - Max 9 - x64\MaxNifTools.ini"; DestDir: "{localappdata}{\}Autodesk\3dsmax\9 - 64bit\enu\plugcfg"; Components: "max9x64"; Flags: ignoreversion; ;Source: "src\*"; DestDir: "{reg:HKLM\SOFTWARE\Bethesda Softworks\Oblivion,Path|{pf}{\}Bethesda Softworks\Oblivion}\Data\niftools"; Components: "src"; Flags: ignoreversion recursesubdirs; diff --git a/NifCommon/NifVersion.h b/NifCommon/NifVersion.h index 7294790..2060d4c 100644 --- a/NifCommon/NifVersion.h +++ b/NifCommon/NifVersion.h @@ -19,9 +19,9 @@ HISTORY: #define VERSION_MAJOR_INT 0 #define VERSION_MINOR_INT 2 #define VERSION_BUILD_INT 13 -#define VERSION_PATCH_INT 0 +#define VERSION_PATCH_INT 1 -#define VERSION_STRING "0, 2, 13, 0" +#define VERSION_STRING "0, 2, 13, 1" //#define DEF_VERSION_STRING(a,b,c,d) #a ", " #b ", " #c ", " #d //#define VERSION_STRING DEF_VERSION_STRING(a,b,c,d) diff --git a/NifImport/ImportSkeleton.cpp b/NifImport/ImportSkeleton.cpp index 60d7091..01b98e2 100644 --- a/NifImport/ImportSkeleton.cpp +++ b/NifImport/ImportSkeleton.cpp @@ -474,8 +474,13 @@ INode *NifImporter::CreateBone(const string& name, Point3 startPos, Point3 endPo setMAXScriptValue(o->GetReference(0), "width", 0, width); setMAXScriptValue(o->GetReference(0), "height", 0, width); } +#if VERSION_3DSMAX > ((6000<<16)+(15<<8)+0) // Version 6 n->BoneAsLine(1); n->ShowBone(2); +#else + //n->BoneAsLine(1); + n->ShowBone(1); +#endif } return result.n; } -- GitLab