From 0eb2e335f21c3952bdcd72143ddfd5a193d446be Mon Sep 17 00:00:00 2001
From: Tazpn <tazpn@users.sourceforge.net>
Date: Fri, 1 Jun 2007 13:47:57 +0000
Subject: [PATCH] Check CollapseTransforms by default.  Fix issue with
 installer and extra } when max install path is not found.

---
 MaxNifTools.ini        |  4 ++--
 MaxNifTools.iss        | 14 +++++++-------
 NifExport/Exporter.cpp |  2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/MaxNifTools.ini b/MaxNifTools.ini
index 1501ffa..9d4d459 100644
--- a/MaxNifTools.ini
+++ b/MaxNifTools.ini
@@ -68,8 +68,8 @@ BonesPerPartition=18
 UseTimeTags=0
 AllowAccum=1
 Creator=
-; Collapse Transforms to final position. Default: 0
-CollapseTransforms=0
+; Collapse Transforms to final position. Default: 1
+CollapseTransforms=1
 ; Add Tangent and Binormal Extra Data block. Default: 0
 TangentAndBinormalExtraData=0
 FixNormals=0
diff --git a/MaxNifTools.iss b/MaxNifTools.iss
index a0140b8..095d0c4 100644
--- a/MaxNifTools.iss
+++ b/MaxNifTools.iss
@@ -96,25 +96,25 @@ begin
   case Param of
     'gmax12':
         if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gmax', 'uninstallpath', Result) then
-          Result := ExpandConstant('{sd}{\}gmax12}');
+          Result := ExpandConstant('{sd}{\}gmax12');
     'max4':
         if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\3ds max 4', 'uninstallpath', Result) then
-          Result := ExpandConstant('{sd}{\}3dsmax4}');
+          Result := ExpandConstant('{sd}{\}3dsmax4');
     'max42':
         if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\3ds max 4', 'uninstallpath', Result) then
-          Result := ExpandConstant('{sd}{\}3dsmax42}');
+          Result := ExpandConstant('{sd}{\}3dsmax42');
     'max5':
         if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\3ds max 5', 'uninstallpath', Result) then
-          Result := ExpandConstant('{sd}{\}3dsmax5}');
+          Result := ExpandConstant('{sd}{\}3dsmax5');
     'max6':
         if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Autodesk\3dsMax\6.0', 'InstallDir', Result) then
-          Result := ExpandConstant('{sd}{\}3dsmax6}');
+          Result := ExpandConstant('{sd}{\}3dsmax6');
     'max7':
         if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Autodesk\3dsMax\7.0', 'InstallDir', Result) then
-          Result := ExpandConstant('{sd}{\}3dsmax7}');
+          Result := ExpandConstant('{sd}{\}3dsmax7');
     'max8':
         if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Autodesk\3dsMax\8.0', 'InstallDir', Result) then
-          Result := ExpandConstant('{sd}{\}3dsmax8}');
+          Result := ExpandConstant('{sd}{\}3dsmax8');
     'max9': 
         begin
           if RegGetSubkeyNames(HKEY_LOCAL_MACHINE, 'SOFTWARE\Autodesk\3dsMax\9.0', Names) then begin
diff --git a/NifExport/Exporter.cpp b/NifExport/Exporter.cpp
index 6a9c579..19b3963 100755
--- a/NifExport/Exporter.cpp
+++ b/NifExport/Exporter.cpp
@@ -40,7 +40,7 @@ bool Exporter::mUseTimeTags = false;
 bool Exporter::mAutoDetect = true;
 bool Exporter::mAllowAccum = true;
 string Exporter::mCreatorName;
-bool Exporter::mCollapseTransforms = false;
+bool Exporter::mCollapseTransforms = true;
 bool Exporter::mFixNormals = false;
 bool Exporter::mTangentAndBinormalExtraData = false;
 bool Exporter::mSupportPrnStrings = false;
-- 
GitLab