diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-07 00:46:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-07 05:20:37 +0300 |
commit | 8b512414c5751c39d443c85d3dcb4820c14e3ba0 (patch) | |
tree | 5468bd943b5496c5b3a507aa1f94afd07cbe1cc5 /source/blender/windowmanager | |
parent | 7c2217cd126a97df9b1c305f79a605f25c06a229 (diff) |
Preferences: correct experimental flag use
Add utilities for checking when experimental features
should be used.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_toolsystem.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index d65cf2324a9..7c3e4ebc008 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -3731,7 +3731,7 @@ wmKeyMap *WM_event_get_keymap_from_toolsystem(wmWindowManager *wm, wmEventHandle const char *keymap_id = tref_rt->keymap; /* Support for the gizmo owning the tool keymap. */ - if (U.experimental.use_tool_fallback) { + if (USER_EXPEREMENTAL_TEST(&U, use_tool_fallback)) { if (tref_rt->gizmo_group[0] != '\0') { wmGizmoMap *gzmap = NULL; wmGizmoGroup *gzgroup = NULL; diff --git a/source/blender/windowmanager/intern/wm_toolsystem.c b/source/blender/windowmanager/intern/wm_toolsystem.c index d714fdaa19e..5878a82d576 100644 --- a/source/blender/windowmanager/intern/wm_toolsystem.c +++ b/source/blender/windowmanager/intern/wm_toolsystem.c @@ -355,7 +355,7 @@ void WM_toolsystem_ref_set_from_runtime(struct bContext *C, * pass in the argument to begin with. */ bool use_fallback_keymap = false; - if (U.experimental.use_tool_fallback) { + if (USER_EXPEREMENTAL_TEST(&U, use_tool_fallback)) { if (tref_rt->gizmo_group[0]) { wmGizmoGroupType *gzgt = WM_gizmogrouptype_find(tref_rt->gizmo_group, false); if (gzgt) { |