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:
authorCampbell Barton <ideasman42@gmail.com>2017-07-28 18:28:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-07-28 18:28:58 +0300
commit2eb2655181b2d90457cb829d0ad285f193ad5e5c (patch)
treeccbaa883121c4629034f18d6d84aa003f9c33453 /source/blender/editors
parent9b22dbcc0d05e465b7ba2fd353c48350d1a546a6 (diff)
Cleanup: clear deprecated UI flags
Also adds cursor-lock flag, to be used in next commit.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/interface/resources.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index 539284030c2..fdeafedc328 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -2758,6 +2758,24 @@ void init_userdef_do_versions(void)
}
}
+ if (!USER_VERSION_ATLEAST(278, 6)) {
+ /* Clear preference flags for re-use. */
+ U.flag &= ~(
+ (1 << 1) | (1 << 2) | (1 << 3) |
+ (1 << 6) | (1 << 7) |
+ (1 << 9) | (1 << 10));
+ U.uiflag &= ~(
+ (1 << 7));
+ U.transopts &= ~(
+ (1 << 2) | (1 << 3) | (1 << 4) |
+ (1 << 7));
+ U.gameflags &= ~(
+ (1 << 0) | (1 << 1) |
+ (1 << 3) | (1 << 4));
+
+ U.uiflag |= USER_LOCK_CURSOR_ADJUST;
+ }
+
/**
* Include next version bump.
*