Expose option for fallback tools keymap in GizmoGroup type
This patch allows new GizmoGroup classes to support tool fallback keymap. With this patch, when new gizmo groups add `'TOOL_FALLBACK_KEYMAP'` to its `bl_options`, the fallback tools are added to the group. This allows a `WorkSpaceTool` (for example) to have selection be a fallback tool if the user LeftMouse drags away from other gizmos in the group. Reviewed by: Campbell Barton (campbellbarton) Differential Revision: https://developer.blender.org/D15154
This commit is contained in:
@@ -1398,6 +1398,11 @@ static void rna_def_gizmogroup(BlenderRNA *brna)
|
|||||||
0,
|
0,
|
||||||
"Tool Init",
|
"Tool Init",
|
||||||
"Postpone running until tool operator run (when used with a tool)"},
|
"Postpone running until tool operator run (when used with a tool)"},
|
||||||
|
{WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP,
|
||||||
|
"TOOL_FALLBACK_KEYMAP",
|
||||||
|
0,
|
||||||
|
"Use fallback tools keymap",
|
||||||
|
"Add fallback tools keymap to this gizmo type."},
|
||||||
{WM_GIZMOGROUPTYPE_VR_REDRAWS,
|
{WM_GIZMOGROUPTYPE_VR_REDRAWS,
|
||||||
"VR_REDRAWS",
|
"VR_REDRAWS",
|
||||||
0,
|
0,
|
||||||
|
|||||||
Reference in New Issue
Block a user