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
path: root/source
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2005-10-25 00:11:16 +0400
committerChris Want <cwant@ualberta.ca>2005-10-25 00:11:16 +0400
commite78e8976ffb874ea8e01c696149d6f85c3aa9869 (patch)
tree49d0e874ebb3bc9b01bb871695fc65d8c9664cd5 /source
parent0482f325b529540f19bf6663a60dda96481f71be (diff)
Made it so that number of editmode unsteps can successfully be set to zero.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/space.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 06445e028a1..586c4669a8a 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -643,6 +643,8 @@ static unsigned short convert_for_nonumpad(unsigned short event)
void BIF_undo_push(char *str)
{
if(G.obedit) {
+ if (U.undosteps == 0) return;
+
if(G.obedit->type==OB_MESH)
undo_push_mesh(str);
else if ELEM(G.obedit->type, OB_CURVE, OB_SURF)
@@ -2647,7 +2649,7 @@ void drawinfospace(ScrArea *sa, void *spacedata)
uiBlockBeginAlign(block);
uiDefButS(block, NUMSLI, B_DRAWINFO, "Steps:",
(xpos+edgsp+mpref+midsp),y2,mpref,buth,
- &(U.undosteps), 2, 64, 0, 0, "Number of undo steps available in Edit Mode (smaller values conserve memory)");
+ &(U.undosteps), 0, 64, 0, 0, "Number of undo steps available in Edit Mode (smaller values conserve memory)");
uiDefButBitI(block, TOG, USER_GLOBALUNDO, B_DRAWINFO, "Global undo",
(xpos+edgsp+mpref+midsp),y1,mpref,buth,