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>2018-06-12 23:00:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-12 23:00:22 +0300
commit98e0bd90f45fd04ebba5c623ea6d2ff5e12f073a (patch)
tree264412c73eeb0354c9ac80500e408f628ac6a22d /source/blender/windowmanager/intern/wm_operator_props.c
parent94e0abda7504d85cc7a446f8d516faf345a8fbe6 (diff)
WM: hide internal operator settings
These are set in the interface and aren't useful to show to users. Other minor changes - Rename 'Ruler/Protractor' -> 'Ruler' - Rename Subdivide 'Quad/Tri Mode' -> 'Create N-Gons' (and invert).
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operator_props.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operator_props.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c
index 8e2f41c49e0..fa7ff85c874 100644
--- a/source/blender/windowmanager/intern/wm_operator_props.c
+++ b/source/blender/windowmanager/intern/wm_operator_props.c
@@ -130,7 +130,9 @@ void WM_operator_properties_filesel(
static void wm_operator_properties_select_action_ex(wmOperatorType *ot, int default_action,
const EnumPropertyItem *select_actions)
{
- RNA_def_enum(ot->srna, "action", select_actions, default_action, "Action", "Selection action to execute");
+ PropertyRNA *prop;
+ prop = RNA_def_enum(ot->srna, "action", select_actions, default_action, "Action", "Selection action to execute");
+ RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
}
void WM_operator_properties_select_action(wmOperatorType *ot, int default_action)