Explorar o código

call it pview, and use the -c option

David Rose %!s(int64=22) %!d(string=hai) anos
pai
achega
5ef511f6b7
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      pandatool/src/mayaprogs/mayaSavePview.cxx

+ 3 - 3
pandatool/src/mayaprogs/mayaSavePview.cxx

@@ -49,7 +49,7 @@ doIt(const MArgList &) {
   }
   }
 
 
   MString filename = MFileIO::currentFile();
   MString filename = MFileIO::currentFile();
-  MString command = MString("pview \"") + filename + MString("\"");
+  MString command = MString("pview -c \"") + filename + MString("\"");
 
 
   int command_result = system(command.asChar());
   int command_result = system(command.asChar());
   if (command_result != 0) {
   if (command_result != 0) {
@@ -79,7 +79,7 @@ EXPCL_MISC MStatus
 initializePlugin(MObject obj) {
 initializePlugin(MObject obj) {
   MFnPlugin plugin(obj, "VR Studio", "1.0");
   MFnPlugin plugin(obj, "VR Studio", "1.0");
   MStatus status;
   MStatus status;
-  status = plugin.registerCommand("savePview", MayaSavePview::creator);
+  status = plugin.registerCommand("pview", MayaSavePview::creator);
   if (!status) {
   if (!status) {
     status.perror("registerCommand");
     status.perror("registerCommand");
   }
   }
@@ -95,7 +95,7 @@ EXPCL_MISC MStatus
 uninitializePlugin(MObject obj) {
 uninitializePlugin(MObject obj) {
   MFnPlugin plugin(obj);
   MFnPlugin plugin(obj);
   MStatus status;
   MStatus status;
-  status = plugin.deregisterCommand("savePview");
+  status = plugin.deregisterCommand("pview");
 
 
   if (!status) {
   if (!status) {
     status.perror("deregisterCommand");
     status.perror("deregisterCommand");