Skip to content

Instantly share code, notes, and snippets.

@sobotka
Created December 2, 2012 01:04
Show Gist options
  • Save sobotka/4186273 to your computer and use it in GitHub Desktop.
Save sobotka/4186273 to your computer and use it in GitHub Desktop.
How to set the default to Gaussian Blur
[...]
static void node_composit_init_blur(bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
{
node->storage = MEM_callocN(sizeof(NodeBlurData), "node blur data");
}
[...]
// Changes to:
static void node_composit_init_blur(bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
{
NodeBlurData* pNodeBlurData = MEM_callocN(sizeof(NodeBlurData), "node blur data");
pNodeBlurData->filtertype = R_FILTER_GAUSS;
node->storage = pNodeBlurData;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment