Fix T59170: Box select ignores modifiers-keys once tool option is set
[blender.git] / source / blender / windowmanager / intern / wm_operator_props.c
index cb69d5843724a92a257039227bec895dc4c297da..4026eb0f91c8de4bf1786b214151528076629340 100644 (file)
@@ -220,6 +220,9 @@ void WM_operator_properties_border(wmOperatorType *ot)
        RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
        prop = RNA_def_int(ot->srna, "ymax", 0, INT_MIN, INT_MAX, "Y Max", "", INT_MIN, INT_MAX);
        RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
+
+       prop = RNA_def_boolean(ot->srna, "wait_for_input", true, "Wait for Input", "");
+       RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
 }
 
 void WM_operator_properties_border_to_rcti(struct wmOperator *op, rcti *rect)
@@ -365,6 +368,9 @@ void WM_operator_properties_gesture_circle_ex(wmOperatorType *ot, bool deselect)
        RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
        RNA_def_int(ot->srna, "radius", radius_default, 1, INT_MAX, "Radius", "", 1, INT_MAX);
 
+       prop = RNA_def_boolean(ot->srna, "wait_for_input", true, "Wait for Input", "");
+       RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
+
        if (deselect) {
                prop = RNA_def_boolean(ot->srna, "deselect", false, "Deselect", "Deselect rather than select items");
                RNA_def_property_flag(prop, PROP_SKIP_SAVE);