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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-02 20:02:56 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-02 20:02:56 +0400
commit6449af5d38e1fdbcbfe060ebba06835505d9890e (patch)
tree9902137c6918a6c7d6f7d2288ac5fd15cd2fffcd /source/blender/editors
parent1a493533c3b29644f2916a391ed7edd0c019a4f7 (diff)
Fix #35958: texture timeout with value 0 not preserved when saving user preferences.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/interface/resources.c86
1 files changed, 43 insertions, 43 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index 977f3489dac..becffb64ae6 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -2048,8 +2048,8 @@ void init_userdef_do_versions(void)
}
}
- /* Freestyle color settings */
- {
+ if (U.versionfile < 267) {
+ /* Freestyle color settings */
bTheme *btheme;
for (btheme = U.themes.first; btheme; btheme = btheme->next) {
@@ -2063,50 +2063,50 @@ void init_userdef_do_versions(void)
rgba_char_args_set(btheme->tv3d.wire_edit, 0x0, 0x0, 0x0, 255);
}
}
- }
-
- /* GL Texture Garbage Collection (variable abused above!) */
- if (U.textimeout == 0) {
- U.texcollectrate = 60;
- U.textimeout = 120;
- }
- if (U.memcachelimit <= 0) {
- U.memcachelimit = 32;
- }
- if (U.frameserverport == 0) {
- U.frameserverport = 8080;
- }
- if (U.dbl_click_time == 0) {
- U.dbl_click_time = 350;
- }
- if (U.scrcastfps == 0) {
- U.scrcastfps = 10;
- U.scrcastwait = 50;
- }
- if (U.v2d_min_gridsize == 0) {
- U.v2d_min_gridsize = 35;
- }
- if (U.dragthreshold == 0)
- U.dragthreshold = 5;
- if (U.widget_unit == 0)
- U.widget_unit = 20;
- if (U.anisotropic_filter <= 0)
- U.anisotropic_filter = 1;
- if (U.ndof_sensitivity == 0.0f) {
- U.ndof_sensitivity = 1.0f;
- U.ndof_flag = NDOF_LOCK_HORIZON |
- NDOF_SHOULD_PAN | NDOF_SHOULD_ZOOM | NDOF_SHOULD_ROTATE;
- }
-
- if (U.ndof_orbit_sensitivity == 0.0f) {
- U.ndof_orbit_sensitivity = U.ndof_sensitivity;
+ /* GL Texture Garbage Collection */
+ if (U.textimeout == 0) {
+ U.texcollectrate = 60;
+ U.textimeout = 120;
+ }
+ if (U.memcachelimit <= 0) {
+ U.memcachelimit = 32;
+ }
+ if (U.frameserverport == 0) {
+ U.frameserverport = 8080;
+ }
+ if (U.dbl_click_time == 0) {
+ U.dbl_click_time = 350;
+ }
+ if (U.scrcastfps == 0) {
+ U.scrcastfps = 10;
+ U.scrcastwait = 50;
+ }
+ if (U.v2d_min_gridsize == 0) {
+ U.v2d_min_gridsize = 35;
+ }
+ if (U.dragthreshold == 0)
+ U.dragthreshold = 5;
+ if (U.widget_unit == 0)
+ U.widget_unit = 20;
+ if (U.anisotropic_filter <= 0)
+ U.anisotropic_filter = 1;
+
+ if (U.ndof_sensitivity == 0.0f) {
+ U.ndof_sensitivity = 1.0f;
+ U.ndof_flag = NDOF_LOCK_HORIZON |
+ NDOF_SHOULD_PAN | NDOF_SHOULD_ZOOM | NDOF_SHOULD_ROTATE;
+ }
+
+ if (U.ndof_orbit_sensitivity == 0.0f) {
+ U.ndof_orbit_sensitivity = U.ndof_sensitivity;
- if (!(U.flag & USER_TRACKBALL))
- U.ndof_flag |= NDOF_TURNTABLE;
+ if (!(U.flag & USER_TRACKBALL))
+ U.ndof_flag |= NDOF_TURNTABLE;
+ }
+ if (U.tweak_threshold == 0)
+ U.tweak_threshold = 10;
}
- if (U.tweak_threshold == 0)
- U.tweak_threshold = 10;
if (bmain->versionfile < 265 || (bmain->versionfile == 265 && bmain->subversionfile < 1)) {
bTheme *btheme;