[Bf-committers] Re: Regarding the undo function....

instinctive new media bf-committers@blender.org
Tue, 20 May 2003 16:38:05 +0200 (CEST)


> to add undo functionality using Python itself -- you could tree-walk
> the sections of the blender structure that are going to be changed,

Hi,

actually, I had the same idea, but not using Python, but doing it
internally.

You just have to do a very tedious task before -- search ALL places in
Blender that ever modify anything in a scene, and put a save_undo() call
there, which just goes along the current scene's tree and copies it to
a backup buffer. Personally, I wouldn't even think it is necessary to save
JUST the changed parts of the scene... Nowadays, memory isn't really an
issue, so you could just save EVERYTHING.

The undo function would then just copy the saved scene back.

Not too difficult!

| alexander ewering           instinctive new media
| ae@instinctive.de       http://www.instinctive.de 
|
| fon: +49-2393-220558         fax: +49-2393-220559