Undo for object handles?
On 29/08/2017 at 03:01, xxxxxxxx wrote:
I implemented some handles for a generator object I'm writing. Moving them changes some values that I store as class members (not as Description values in the BaseContainer).
It works fine, but moving a handle does not create an Undo step! I thought, calling op.Message(c4d.MSG_CHANGE) or op.Message(c4d.MSG_UPDATE) at the end of SetHandle() would fix it, but it doesn't.
On 30/08/2017 at 05:51, xxxxxxxx wrote:
think of how the Undo system works. It basically creates a copy of the entity.
So question is: Do you properly handle the member variables in CopyTo()?
On 06/09/2017 at 02:15, xxxxxxxx wrote:
Yes, of course I do.
That's what puzzles me.
The value is copied, but no Undo step is created. If I move a handle and then hit CMD+Z, the change caused by the handle movement stays, but the change I made before that is revoked.