Browse Source

Fixes to mayapandatool from ynjh_jo

rdb 17 years ago
parent
commit
032098b9aa
2 changed files with 8 additions and 2 deletions
  1. 2 0
      doc/doc/ReleaseNotes
  2. 6 2
      pandatool/src/scripts/MayaPandaTool.mel

+ 2 - 0
doc/doc/ReleaseNotes

@@ -1,11 +1,13 @@
 ------------------------  RELEASE 1.5.3  ------------------------
 
+* License changed to BSD
 * Fixes x-file parser for real, this time.
 * Fixes serious bug in shader generator
 * Adds MSVCR71 and MSVCP71 back to the distro (for python)
 * Fixed a bug in GeoMipTerrain
 * Adds support for .egg.pz to packpanda --bam
 * Turns on libpandaode support
+* Mayapandatool fixed
 
 ------------------------  RELEASE 1.5.2  ------------------------
 

+ 6 - 2
pandatool/src/scripts/MayaPandaTool.mel

@@ -743,7 +743,11 @@ global proc string argsBuilder()
 	//get the version of maya and append it to the maya2egg call
 	string $mayaVersionLong = `getApplicationVersionAsFloat`;
 	string $mayaVersionShort = substituteAllString($mayaVersionLong, ".", "");
-	string $mayaVersionShort = substituteAllString($mayaVersionShort, "0", "");
+	//only strips the zeroes if the version number is less than 4
+	if (`size($mayaVersionShort)`<4)
+	{
+		$mayaVersionShort = substituteAllString($mayaVersionShort, "0", "");
+	}
 
 	$args += $mayaVersionShort;
 
@@ -1181,4 +1185,4 @@ global proc export2Bam ( string $eggFile )
 	}
 
 	print ("Finished exporting (.egg -> .bam)\n");
-}
+}