Hello,
I am working on a plugin that will take a child object in with a dynamics tag.
My problem is that the effects of the dynamic tag are not being applied to the object while it's a child.
Below I have the code stripped down to its base form.
class TestClass : public ObjectData
{
INSTANCEOF(TestClass, ObjectData)
public:
virtual SplineObject* GetContour(BaseObject* op, BaseDocument* doc, Float lod, BaseThread* bt);
static NodeData* Alloc() { return NewObjClear(TestClass); }
};
SplineObject* TestClass::GetContour(BaseObject* op, BaseDocument* doc, Float lod, BaseThread* bt)
{
SplineObject *spline = SplineObject::Alloc(2, SPLINETYPE::BEZIER);
return spline;
}
Bool RegisterSimulationReader()
{
return RegisterObjectPlugin(ID_TESTCLASS, "Test"_s, OBJECT_GENERATOR | OBJECT_ISSPLINE | OBJECT_INPUT, TestClass::Alloc, "TestClass"_s, AutoBitmap("circle.tif"_s), 0);
}
The code above prevents the dynamics tag from updating properly. If I remove OBJECT_INPUT from the register the dynamics tag updates properly when it is a child of my plugin
Given the type of plugin I'm making it seems like I should have OBJECT_INPUT included but if I do it prevents it from updating.
I'm not sure what I should do to work around this. Any suggestions would be appreciated.
John Thomas