Page 1 of 1
undo/redo for whole arrays
Posted: Fri Dec 13, 2013 12:28 am
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.
Re: undo/redo for whole arrays
Posted: Fri Dec 13, 2013 2:49 pm
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?).