mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Fixes for env problems
This commit is contained in:
parent
f9f45f210d
commit
0f2e36eb84
@ -720,12 +720,12 @@ global proc string exportScene( string $selection )
|
||||
|
||||
if ( $selection == "all")
|
||||
{
|
||||
file -op "v=1" -typ "mayaBinary" -pr -ea $tempScenePath; //export the whole scene
|
||||
file -op "v=1" -typ "mayaBinary" -ea $tempScenePath; //export the whole scene
|
||||
print ("Saved entire scene as temporary file: " + $fileName + "_temp.mb\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
file -op "v=1" -typ "mayaBinary" -pr -es $tempScenePath; //export only selected objects
|
||||
file -op "v=1" -typ "mayaBinary" -es $tempScenePath; //export only selected objects
|
||||
print ("Saved selected objects as temporary file: " + $fileName + "_temp.mb\n");
|
||||
}
|
||||
|
||||
@ -864,6 +864,8 @@ global proc string argsBuilder()
|
||||
///////////////////////////////////////////////////////////
|
||||
global proc string export2Egg ( string $mbfile, string $destPath, string $destFilename, string $ARGS)
|
||||
{
|
||||
string $pandaEnvSetup = "set PATH=%MAYA_LOCATION%\\bin;%PATH% & ";
|
||||
|
||||
//Check if there is a valid maya binary file to operate on
|
||||
if ( $mbfile == "" )
|
||||
{
|
||||
@ -889,7 +891,7 @@ global proc string export2Egg ( string $mbfile, string $destPath, string $destFi
|
||||
string $result =
|
||||
system
|
||||
(
|
||||
$ARGS
|
||||
$pandaEnvSetup + $ARGS
|
||||
+ " -o "
|
||||
+ "\"" + $eggFile + "\""
|
||||
+ " "
|
||||
@ -904,7 +906,7 @@ global proc string export2Egg ( string $mbfile, string $destPath, string $destFi
|
||||
string $result =
|
||||
system
|
||||
(
|
||||
$ARGS
|
||||
$pandaEnvSetup + $ARGS
|
||||
+ "\"" + $mbfile + "\""
|
||||
+ " "
|
||||
+ "\"" + $eggFile + "\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user