Created
January 4, 2019 19:21
-
-
Save serguei-k/7acb537376bc7fea4688915c7fb9408d to your computer and use it in GitHub Desktop.
Save default array values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MStatus Node::shouldSave(const MPlug& plug, bool& result) | |
{ | |
if (plug.attribute() == arrayAttribute) | |
{ | |
result = true; | |
return MS::kSuccess; | |
} | |
return MPxNode::shouldSave(plug, result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment