From db36eff9f7d1eea8ed93434bdb679c37e31681db Mon Sep 17 00:00:00 2001 From: Justin Jones Date: Thu, 10 Jan 2019 15:46:44 +0100 Subject: UI: make pie menus stick only when tapping key. When holding down the key for a while, the pie menu will disappear when releasing the key. This is under the assumption that in this case the user decided to cancel the action. Differential Revision: https://developer.blender.org/D4180 --- source/blender/makesrna/intern/rna_userdef.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index d8d11af6bd5..157bbf16a24 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -3809,6 +3809,12 @@ static void rna_def_userdef_view(BlenderRNA *brna) "Pie menus will use the initial mouse position as center for this amount of time " "(in 1/100ths of sec)"); + prop = RNA_def_property(srna, "pie_tap_timeout", PROP_INT, PROP_NONE); + RNA_def_property_range(prop, 0, 1000); + RNA_def_property_ui_text(prop, "Tap Key Timeout", + "Pie menu button held longer than this will dismiss menu on release." + "(in 1/100ths of sec)"); + prop = RNA_def_property(srna, "pie_animation_timeout", PROP_INT, PROP_NONE); RNA_def_property_range(prop, 0, 1000); RNA_def_property_ui_text(prop, "Animation Timeout", -- cgit v1.2.3