From 5ef511f6b7cca56aef9fa25a19a9ec1a5d4758c0 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 28 Oct 2003 20:03:55 +0000 Subject: [PATCH] call it pview, and use the -c option --- pandatool/src/mayaprogs/mayaSavePview.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandatool/src/mayaprogs/mayaSavePview.cxx b/pandatool/src/mayaprogs/mayaSavePview.cxx index 0c180144d6..1de481310b 100644 --- a/pandatool/src/mayaprogs/mayaSavePview.cxx +++ b/pandatool/src/mayaprogs/mayaSavePview.cxx @@ -49,7 +49,7 @@ doIt(const MArgList &) { } MString filename = MFileIO::currentFile(); - MString command = MString("pview \"") + filename + MString("\""); + MString command = MString("pview -c \"") + filename + MString("\""); int command_result = system(command.asChar()); if (command_result != 0) { @@ -79,7 +79,7 @@ EXPCL_MISC MStatus initializePlugin(MObject obj) { MFnPlugin plugin(obj, "VR Studio", "1.0"); MStatus status; - status = plugin.registerCommand("savePview", MayaSavePview::creator); + status = plugin.registerCommand("pview", MayaSavePview::creator); if (!status) { status.perror("registerCommand"); } @@ -95,7 +95,7 @@ EXPCL_MISC MStatus uninitializePlugin(MObject obj) { MFnPlugin plugin(obj); MStatus status; - status = plugin.deregisterCommand("savePview"); + status = plugin.deregisterCommand("pview"); if (!status) { status.perror("deregisterCommand");