[Sidefx-houdini-list] No VEX_VexOpCleanup call in H12?

Szymon Kapeniak szymon.kapeniak at gmail.com
Sun Jul 15 06:22:26 EDT 2012


Greetings!
Custom vex functions seem to be not calling their cleanup functions in
shading context as of Houdini 12 (12.0.623). Is it by design or it's a bug?
In a bellow code my_cleanup never evaluates in Mantra (It evaluates in SOPs
on recompile or node's deletion). It works as expected in H11.1 though...

static void *
my_init()
{
    cout << "Entering." << endl;
    return NULL;
}

static void
my_cleanup(void *data)
{
    cout << "Leaving." << endl;
}

static void
clean(int, void *argv[], void *data)
{
    int  *result = (int*) argv[0];
    result[0] = 1;
}

void
newVEXOp(void *)
{
new VEX_VexOp("clean@&I",
clean,
VEX_ALL_CONTEXT,
my_init,
my_cleanup,
VEX_OPTIMIZE_0);
}


Thanks for help!
-- 
skk.



More information about the Sidefx-houdini-list mailing list