Skip to content

Commit

Permalink
Fix for deregistering usdListShadingModes command
Browse files Browse the repository at this point in the history
  • Loading branch information
pmolodo committed Apr 18, 2017
1 parent accfac8 commit fac7b79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions third_party/maya/plugin/pxrUsd/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ MStatus uninitializePlugin(
status.perror("deregisterCommand usdExport");
}

status = plugin.deregisterCommand("usdListShadingModes");
if (!status) {
status.perror("deregisterCommand usdListShadingModes");
}

status = plugin.deregisterFileTranslator("pxrUsdImport");
if (!status) {
status.perror("pxrUsd: unable to deregister USD Import translator.");
Expand All @@ -211,11 +216,6 @@ MStatus uninitializePlugin(
status.perror("pxrUsd: unable to deregister USD Export translator.");
}

status = plugin.deregisterFileTranslator("usdListShadingModes");
if (!status) {
status.perror("deregisterCommand usdListShadingModes");
}

status = MGlobal::executeCommand("assembly -e -deregister " + _data.referenceAssembly.typeName);
CHECK_MSTATUS(status);

Expand Down

0 comments on commit fac7b79

Please sign in to comment.