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>2019-05-31 12:53:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 14:48:43 +0300
commit56a533c0711a486375408afaa7ac51da1613ccee (patch)
treeec45e4aa284593f37e84d2b79c88c7a3b6c74f80 /source/blender/windowmanager/intern/wm_operator_props.c
parent455e14eccd1c54e99114ee44553a96bfc57981ab (diff)
WM: option to ignore cursor image/clip/view2d zoom
In preparation for view navigation gizmos.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operator_props.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operator_props.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c
index 3ad7247d993..c471cb6f922 100644
--- a/source/blender/windowmanager/intern/wm_operator_props.c
+++ b/source/blender/windowmanager/intern/wm_operator_props.c
@@ -334,6 +334,17 @@ void WM_operator_properties_gesture_box_ex(wmOperatorType *ot, bool deselect, bo
}
}
+/**
+ * Disable using cursor position,
+ * use when view operators are initialized from buttons.
+ */
+void WM_operator_properties_use_cursor_init(wmOperatorType *ot)
+{
+ PropertyRNA *prop = RNA_def_boolean(
+ ot->srna, "use_cursor_init", true, "Cursor Init", "Use initial cursor position");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE | PROP_HIDDEN);
+}
+
void WM_operator_properties_gesture_box_select(wmOperatorType *ot)
{
WM_operator_properties_gesture_box_ex(ot, true, true);