Fixes to mayapandatool from ynjh_jo

This commit is contained in:
rdb 2008-08-06 11:51:06 +00:00
parent c1f4a937b6
commit 032098b9aa
2 changed files with 8 additions and 2 deletions

View File

@ -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 ------------------------

View File

@ -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");
}
}