Skip to content

Commit

Permalink
Merge pull request #758 from marsupial/PR/mtoh-render-settings
Browse files Browse the repository at this point in the history
[mtoh] Refactor settings / defaultRenderGlobals storage
  • Loading branch information
Krystian Ligenza authored Oct 2, 2020
2 parents 299cda1 + 72def6d commit 36e3113
Show file tree
Hide file tree
Showing 7 changed files with 969 additions and 443 deletions.
4 changes: 4 additions & 0 deletions lib/mayaUsd/render/mayaToHydra/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <stdlib.h>

#include <maya/MFnPlugin.h>
#include <maya/MGlobal.h>

#include <pxr/base/plug/plugin.h>
#include <pxr/base/plug/registry.h>
Expand Down Expand Up @@ -83,6 +84,9 @@ PLUGIN_EXPORT MStatus uninitializePlugin(MObject obj) {
}
}

// Clear any registered callbacks
MGlobal::executeCommand("callbacks -cc mtoh;");

if (!plugin.deregisterCommand(MtohViewCmd::name)) {
ret = MS::kFailure;
ret.perror("Error deregistering mtoh command!");
Expand Down
Loading

0 comments on commit 36e3113

Please sign in to comment.