Forráskód Böngészése

Maya changes for linux

rdb 17 éve
szülő
commit
ff89107e84
1 módosított fájl, 7 hozzáadás és 1 törlés
  1. 7 1
      pandatool/src/mayaprogs/mayaToEgg.cxx

+ 7 - 1
pandatool/src/mayaprogs/mayaToEgg.cxx

@@ -17,7 +17,9 @@
 #include "config_mayaegg.h"
 #include "config_maya.h"  // for maya_cat
 #include "globPattern.h"
-#include "pystub.h"
+#ifdef _WIN32
+  #include "pystub.h"
+#endif
 
 ////////////////////////////////////////////////////////////////////
 //     Function: MayaToEgg::Constructor
@@ -282,11 +284,15 @@ dispatch_transform_type(const string &opt, const string &arg, void *var) {
 }
 
 int main(int argc, char *argv[]) {
+  // We don't want pystub on linux, since it gives problems with Maya's python.
+#ifdef _WIN32
   // A call to pystub() to force libpystub.so to be linked in.
   pystub();
+#endif
 
   MayaToEgg prog;
   prog.parse_command_line(argc, argv);
   prog.run();
   return 0;
 }
+