Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-09-18 16:12:45 +0400
committerTon Roosendaal <ton@blender.org>2004-09-18 16:12:45 +0400
commit562d6958cbf646aba31ed92fe4f0e07d1dc495b6 (patch)
tree31de7ac4e7df2e56d269b14e336a04a2e1316f82 /source/blender/src/editview.c
parent3d8a485fb9bef36f717423955c587ebc7834c784 (diff)
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!)
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r--source/blender/src/editview.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index cf4399a29d8..747aa18c671 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -392,7 +392,7 @@ void deselectall(void) /* is toggle */
allqueue(REDRAWNLA, 0);
countall();
-
+ BIF_undo_push("(De)select all");
}
/* selects all objects of a particular type, on currently visible layers */
@@ -414,7 +414,7 @@ void selectall_type(short obtype)
allqueue(REDRAWNLA, 0);
countall();
-
+ BIF_undo_push("Select all per type");
}
/* selects all objects on a particular layer */
void selectall_layer(int layernum)
@@ -435,8 +435,9 @@ void selectall_layer(int layernum)
allqueue(REDRAWNLA, 0);
countall();
-
+ BIF_undo_push("Select all per layer");
}
+
static void deselectall_except(Base *b) /* deselect all except b */
{
Base *base;
@@ -658,13 +659,14 @@ void mouse_select(void)
allqueue(REDRAWACTION, 0);
allqueue(REDRAWNLA, 0);
allqueue(REDRAWHEADERS, 0); /* To force display update for the posebutton */
+
}
}
countall();
- rightmouse_transform();
+ rightmouse_transform(); // does undo push!
}
/* ------------------------------------------------------------------------- */
@@ -915,6 +917,9 @@ void borderselect(void)
allqueue(REDRAWINFO, 0);
}
+ /* remove obedit check later */
+ if(G.obedit==NULL) BIF_undo_push("Border select");
+
} /* end of borderselect() */
/* ------------------------------------------------------------------------- */
@@ -1322,6 +1327,7 @@ void fly(void)
}
else if(toets==SPACEKEY) {
loop= 0;
+ BIF_undo_push("Fly camera");
break;
}
else if(toets==LEFTMOUSE) {