diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-16 04:07:01 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-16 04:07:01 +0400 |
commit | 00f0ac81074b34f846bf64dd3038ef37fe29eedb (patch) | |
tree | f600d8f06987285b3f38d6cf6c28b72410c9c3d5 /source/blender/windowmanager | |
parent | 837d0ac2e0882bc63da15c96f41fa76da2486bf6 (diff) |
Fix #35368:
* Editing number of segments for particle hair did not update the viewport.
* Hidden particles were confusing, the paths were drawn but without the points.
Now it draws the path faded to indicate that they are hidden/locked.
* Select tips/roots operators now have options to select/deselect/toggle/invert.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 1 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 11 |
2 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index cfa914091f1..585201bc559 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -243,6 +243,7 @@ void WM_operator_properties_gesture_border(struct wmOperatorType *ot, bool exte void WM_operator_properties_mouse_select(struct wmOperatorType *ot); void WM_operator_properties_gesture_straightline(struct wmOperatorType *ot, bool cursor); void WM_operator_properties_select_all(struct wmOperatorType *ot); +void WM_operator_properties_select_action(struct wmOperatorType *ot, int default_action); bool WM_operator_check_ui_enabled(const struct bContext *C, const char *idname); wmOperator *WM_operator_last_redo(const struct bContext *C); diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 4dce99dd017..bb29ec9000f 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -1109,9 +1109,9 @@ void WM_operator_properties_filesel(wmOperatorType *ot, int filter, short type, RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); } -void WM_operator_properties_select_all(wmOperatorType *ot) +void WM_operator_properties_select_action(wmOperatorType *ot, int default_action) { - static EnumPropertyItem select_all_actions[] = { + static EnumPropertyItem select_actions[] = { {SEL_TOGGLE, "TOGGLE", 0, "Toggle", "Toggle selection for all elements"}, {SEL_SELECT, "SELECT", 0, "Select", "Select all elements"}, {SEL_DESELECT, "DESELECT", 0, "Deselect", "Deselect all elements"}, @@ -1119,7 +1119,12 @@ void WM_operator_properties_select_all(wmOperatorType *ot) {0, NULL, 0, NULL, NULL} }; - RNA_def_enum(ot->srna, "action", select_all_actions, SEL_TOGGLE, "Action", "Selection action to execute"); + RNA_def_enum(ot->srna, "action", select_actions, default_action, "Action", "Selection action to execute"); +} + +void WM_operator_properties_select_all(wmOperatorType *ot) +{ + WM_operator_properties_select_action(ot, SEL_TOGGLE); } void WM_operator_properties_border(wmOperatorType *ot) |