From 032098b9aa0339c4b969320fa8238dd34cb6f72b Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 6 Aug 2008 11:51:06 +0000 Subject: [PATCH] Fixes to mayapandatool from ynjh_jo --- doc/doc/ReleaseNotes | 2 ++ pandatool/src/scripts/MayaPandaTool.mel | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/doc/ReleaseNotes b/doc/doc/ReleaseNotes index 2840140841..00154eb300 100644 --- a/doc/doc/ReleaseNotes +++ b/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 ------------------------ diff --git a/pandatool/src/scripts/MayaPandaTool.mel b/pandatool/src/scripts/MayaPandaTool.mel index e3f54db2bb..3239ea3f85 100755 --- a/pandatool/src/scripts/MayaPandaTool.mel +++ b/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"); -} \ No newline at end of file +}