Blender Git Loki
Git Commits -> Revision 562d695
Revision 562d695 by Ton Roosendaal (master) September 18, 2004, 12:12 (GMT) |
Another step in the undo evolution. - Made unified API for undo calls, to be found in space.c BIF_undo_push(char *str) BIF_undo(void) BIF_redo(void) These calls will do all undo levels, including editmode and vpaint. The transition is work in progress, because mesh undo needs recode. - New global hotkey CTR+Z for undo Note: 'shaded draw mode' still is SHIFT+Z, the old CTRL+Z was to recalc the lighting in shaded mode, which already became much more interactive, like during/after any transform(). Recalc hotkey now is SHIFT+ALT+Z CTRL+<any modifier>+Z is redo. - For OSX users; the Apple-key ("Command") now maps to CTRL as well. This disables the one-mouse-button hack for rightmouse btw, will be fixed in next commit. At least we can use Apple-Z :) - Old Ukey for undo is still there, as a training period... my preference is to restore Ukey to "reload original data" as in past, and only use new CTRL+Z for undo. - Added undo_push() for all of editobject.c and editview.c. Meaning we can start using/testing global undo in the 3d window. Please dont comment on missing parts for now, first I want someone to volunteer to tackle all of that. - Since the global undo has a full 'file' in memory, it can save extremely fast on exit to <temp dir>/quit.blend. That's default now when global undo is enabled. It prints "Saved session recovery to ..." in console then. - In file menu, a new option is added "Recover Last Session". Note that this reads the undo-save, which is without UI. - With such nice new features we then can also kill the disputed Cancel/Confirm menu on Q-KEY. - Added fix which initializes seam/normal theme color on saved themes. They showed black now.... (Note: that's in usiblender.c!) |
Commit Details:
Full Hash: 562d6958cbf646aba31ed92fe4f0e07d1dc495b6
SVN Revision: 3074
Parent Commit: 3d8a485
Lines Changed: +519, -384
20 Modified Paths:
/source/blender/blenkernel/BKE_blender.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/blender.c (+194, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/blenloader/intern/undofile.c (+0, -148) (Diff)
/source/blender/include/BDR_editobject.h (+1, -1) (Diff)
/source/blender/include/BIF_editmesh.h (+0, -1) (Diff)
/source/blender/include/BIF_space.h (+4, -0) (Diff)
/source/blender/src/buttons_editing.c (+1, -1) (Diff)
/source/blender/src/edit.c (+11, -8) (Diff)
/source/blender/src/editmesh.c (+3, -22) (Diff)
/source/blender/src/editobject.c (+126, -155) (Diff)
/source/blender/src/editscreen.c (+1, -3) (Diff)
/source/blender/src/editview.c (+10, -4) (Diff)
/source/blender/src/header_info.c (+21, -0) (Diff)
/source/blender/src/header_view3d.c (+8, -8) (Diff)
/source/blender/src/interface.c (+3, -2) (Diff)
/source/blender/src/resources.c (+4, -1) (Diff)
/source/blender/src/space.c (+74, -6) (Diff)
/source/blender/src/toets.c (+17, -10) (Diff)
/source/blender/src/usiblender.c (+33, -12) (Diff)
/source/blender/blenkernel/intern/blender.c (+194, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/blenloader/intern/undofile.c (+0, -148) (Diff)
/source/blender/include/BDR_editobject.h (+1, -1) (Diff)
/source/blender/include/BIF_editmesh.h (+0, -1) (Diff)
/source/blender/include/BIF_space.h (+4, -0) (Diff)
/source/blender/src/buttons_editing.c (+1, -1) (Diff)
/source/blender/src/edit.c (+11, -8) (Diff)
/source/blender/src/editmesh.c (+3, -22) (Diff)
/source/blender/src/editobject.c (+126, -155) (Diff)
/source/blender/src/editscreen.c (+1, -3) (Diff)
/source/blender/src/editview.c (+10, -4) (Diff)
/source/blender/src/header_info.c (+21, -0) (Diff)
/source/blender/src/header_view3d.c (+8, -8) (Diff)
/source/blender/src/interface.c (+3, -2) (Diff)
/source/blender/src/resources.c (+4, -1) (Diff)
/source/blender/src/space.c (+74, -6) (Diff)
/source/blender/src/toets.c (+17, -10) (Diff)
/source/blender/src/usiblender.c (+33, -12) (Diff)