On 30/04/2015 at 03:19, xxxxxxxx wrote:
Hi Andreas,
I was allready testing inside MSG_MENUPREPARE.
My problem is, when I start my plugin, I get a bugreport.
Here is the code I use:
Bool MyPluginData::Message(GeListNode* node, Int32 type, void* data)
{
if (type == MSG_MENUPREPARE)
{
BaseDocument* doc = node->GetDocument();
BaseMaterial* myMaterial = BaseMaterial::Alloc(Mbase);
doc->InsertMaterial(myMaterial);
}
return true;
}
Does anybody see the problem here?
Thanks in advance for your help and time!
Greetings,
Casimir Smets