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:
authorJoshua Leung <aligorith@gmail.com>2007-01-12 08:29:59 +0300
committerJoshua Leung <aligorith@gmail.com>2007-01-12 08:29:59 +0300
commit27266b22c176d37fa128740a05e8db0badbb6262 (patch)
tree7a8786a69972ff119700ae3d4dbd1ecdc61de789 /source/blender/src/usiblender.c
parent99d16b99cd71ef14f4b83b987f925700f109f623 (diff)
Bugfix #5690:
If you set the value of undosteps in userprefs to zero, and tried to save defaults, the value would get reset to 32. Caused by out-of-place version patch.
Diffstat (limited to 'source/blender/src/usiblender.c')
-rw-r--r--source/blender/src/usiblender.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 0b35488ac35..037695b4761 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -209,6 +209,7 @@ static void init_userdef_file(void)
bTheme *btheme;
U.uiflag |= USER_GLOBALUNDO;
+ if (U.undosteps==0) U.undosteps=32;
for(btheme= U.themes.first; btheme; btheme= btheme->next) {
/* check for alpha==0 is safe, then color was never set */
@@ -353,8 +354,6 @@ static void init_userdef_file(void)
}
}
- if (U.undosteps==0) U.undosteps=32;
-
/* GL Texture Garbage Collection (variable abused above!) */
if (U.textimeout == 0) {
U.texcollectrate = 60;