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 <campbell@blender.org>2022-03-17 06:37:20 +0300
committerCampbell Barton <campbell@blender.org>2022-03-17 06:37:20 +0300
commit1d88aeb95fc40771be7ef3a835af4206c845aa9b (patch)
treeac7108df46d7dcc7b6cebd206b0e3448f774f456 /source/blender/windowmanager/intern
parentea0c86e961de20d4215824d5cfd239a1f4c4cc90 (diff)
View 3D: support for select passthrough when picking selected items
Currently this isn't used in the key-map, it will eventually allow the 3D viewports tweak tool to match the behavior of other editors that support tweaking a selection without first de-selecting all other elements.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_operator_props.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c
index 1c7e63749f8..dacc17c2c1e 100644
--- a/source/blender/windowmanager/intern/wm_operator_props.c
+++ b/source/blender/windowmanager/intern/wm_operator_props.c
@@ -518,6 +518,14 @@ void WM_operator_properties_mouse_select(wmOperatorType *ot)
"Deselect On Nothing",
"Deselect all when nothing under the cursor");
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+
+ /* TODO: currently only used for the 3D viewport. */
+ prop = RNA_def_boolean(ot->srna,
+ "select_passthrough",
+ false,
+ "Only Select Unselected",
+ "Ignore the select action when the element is already selected");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
void WM_operator_properties_checker_interval(wmOperatorType *ot, bool nth_can_disable)