Myel
04-04-2006, 05:37 PM
Hi everyone!
I have implemented a tag plugin which do some modifications on the points of an object thanks to sliders. Several sliders can be added by the user and their values are used for the modifications. Each time a slider is modified, the modification is made with a code like this one:
...
// Modifications on the points selected by the tag
...
doc->StartUndo();
Bc.SetContainer(3000, m_vector);
data.SetContainer(MYID, Bc);
tag->SetData(data);
tag->Message(MSG_UPDATE);
doc->AddUndo(UNDO_CHANGE, tag);
doc->EndUndo();
where Bc is a BaseContainer in which my data (m_vector an other BaseContainer which contains several data) are stored.
When I add two sliders and change the sliders values and next do Undo in Cinema4d, the two sliders are removed when the Undo should affect only the laste modification on the points.
Does somebody have an explanation?
Thanks a lot.
Myel.
I have implemented a tag plugin which do some modifications on the points of an object thanks to sliders. Several sliders can be added by the user and their values are used for the modifications. Each time a slider is modified, the modification is made with a code like this one:
...
// Modifications on the points selected by the tag
...
doc->StartUndo();
Bc.SetContainer(3000, m_vector);
data.SetContainer(MYID, Bc);
tag->SetData(data);
tag->Message(MSG_UPDATE);
doc->AddUndo(UNDO_CHANGE, tag);
doc->EndUndo();
where Bc is a BaseContainer in which my data (m_vector an other BaseContainer which contains several data) are stored.
When I add two sliders and change the sliders values and next do Undo in Cinema4d, the two sliders are removed when the Undo should affect only the laste modification on the points.
Does somebody have an explanation?
Thanks a lot.
Myel.
