Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_toolsystem.c
| Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Lines | if (tref_rt != tref->runtime) { | ||||
| *tref->runtime = *tref_rt; | *tref->runtime = *tref_rt; | ||||
| } | } | ||||
| /* Ideally Python could check this gizmo group flag and not | /* Ideally Python could check this gizmo group flag and not | ||||
| * pass in the argument to begin with. */ | * pass in the argument to begin with. */ | ||||
| bool use_fallback_keymap = false; | bool use_fallback_keymap = false; | ||||
| if (tref->idname_fallback[0] || tref->runtime->keymap_fallback[0]) { | if (tref->idname_fallback[0] || tref->runtime->keymap_fallback[0]) { | ||||
| if (tref_rt->gizmo_group[0]) { | if (tref_rt->flag & TOOLREF_FLAG_FALLBACK_KEYMAP) { | ||||
| use_fallback_keymap = true; | |||||
| } | |||||
| else if (tref_rt->gizmo_group[0]) { | |||||
| wmGizmoGroupType *gzgt = WM_gizmogrouptype_find(tref_rt->gizmo_group, false); | wmGizmoGroupType *gzgt = WM_gizmogrouptype_find(tref_rt->gizmo_group, false); | ||||
| if (gzgt) { | if (gzgt) { | ||||
| if (gzgt->flag & WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP) { | if (gzgt->flag & WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP) { | ||||
| use_fallback_keymap = true; | use_fallback_keymap = true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 562 Lines • Show Last 20 Lines | |||||