undo/redo for whole arrays

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

undo/redo for whole arrays

Post by tester »

Anyone played with (unlimited) undo/redo system for whole arrays?

I guess this involves ruby. Besides on green prims it will not work too smooth.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: undo/redo for whole arrays

Post by tester »

Hmm... Actually, there might be a temporal idea for using the old undo/redo theme. Like this:

Array of floats --> array to string conversion --> undo/redo --> string to float array conversion back.

Then - the queue/stack prims can operate on strings, that represent whole arrays. One thing I'm not sure is - the performance of such solution.

p.s.: I don't want to combine undo/redo with preset system.

//edit:

...and it appears to work. Even without additional conversion of float array into whatever-separated string (end line markers seem to be different from stack/queue internal separator?).
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply