WIP: Sculpt: Add operators to Mask, Face Sets, and Paint menus #105410

Draft
Tarek-Yasser wants to merge 23 commits from Tarek-Yasser/blender:102427_continued into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

23 Commits

Author SHA1 Message Date
Joseph Eagar 6db4a48113 Fix another minor merge error (duplicate code) 2023-04-16 14:54:18 -07:00
Joseph Eagar 0bca34bbde fix merge error 2023-04-16 14:47:29 -07:00
Joseph Eagar 6332f475c3 Merge branch 'main' into 102427_continued 2023-04-16 14:42:31 -07:00
Tarek Yasser 418e2e0fc6 Merge branch '102427_continued' of projects.blender.org:Tarek-Yasser/blender into 102427_continued 2023-03-08 19:43:53 +02:00
Tarek Yasser d7c31e948e Merge branch 'main' of https://projects.blender.org/blender/blender into 102427_continued 2023-03-08 19:42:59 +02:00
Tarek-Yasser cab6349e3d Merge branch 'main' into 102427_continued 2023-03-03 17:52:28 +01:00
Tarek Yasser 86fe5f3282 Filter Color: Update status bar with controls in modal mode. 2023-03-03 18:16:13 +02:00
Tarek Yasser b61a74b0f6 Filter Color: Add modal keymap and handle cancelling.
Note that the cancelling is copied from Joseph Eagar's Filter Mesh
cancel implemenation with some tweaks to work with colors.
2023-03-03 16:47:25 +02:00
Tarek Yasser 696ac86aba UI: Set cursor to `WM_CURSOR_EW_SCROLL` for color filter operations. 2023-03-03 14:56:00 +02:00
Tarek Yasser b358b2cec8 UI: Fix misnamed "Filter Color" to "Fill Color".
Also, modified the flags for `SCULPT_OT_color_filter` to grab the
cursor's X.
2023-02-28 13:00:30 +02:00
Tarek Yasser cbd2db470b Merge branch 'main' of https://projects.blender.org/blender/blender into 102427_continued 2023-02-28 10:40:09 +02:00
Tarek Yasser 75e5403398 UI: Add a new menu for `Paint`.
Current exposes Color Fill, Blur Colors, Change
Hue/Saturation/Value/Brightness/Color/Red/Gree/Blue and Expand Color by
Topology.

Added a header? submenu for fill, just testing out Joseph Eagar's
suggestion.
2023-02-28 10:24:47 +02:00
Tarek Yasser f916846044 UI: Add a few operators to the `Face Sets` menu.
Added operators:  Box/Lasso Face Set, Fair Face Set Positions/Tangency,
and Delete Face Set.
Renamed `Randomize Colors` to `Random Face Set Clors` to match the
example screenshot.
2023-02-27 00:46:13 +02:00
Tarek Yasser 2efa17679e Merge branch 'main' of https://projects.blender.org/blender/blender into 102427_continued 2023-02-27 00:20:16 +02:00
Tarek Yasser 4bef597a72 UI: Update `Mask` menu according to issue 102427.
- Re-ordered and renamed `Mask` menu entries.
- Added `Mask by Color`
- Added `OPTYPE_DEPENDS_ON_CURSOR` to `SCULPT_OT_mask_by_color`.
2023-02-27 00:19:16 +02:00
Tarek Yasser d43c165730 Pull Joseph Eagar's mesh filter improvements 2023-02-17 20:45:03 +02:00
Joseph Eagar e2a41e65a5 Rebase 102427 2023-02-16 21:16:25 -08:00
Tarek Yasser d6a0fccf28 UI: Mesh filters now change the cursor and update the statusbar.
buildbot/vexp-code-patch-coordinator Build done. Details
Mesh filters now use the `WM_CURSOR_EW_SCROLL` and have "LMB: Confirm"
as their statusbar message.
2023-02-16 00:41:49 +02:00
Tarek Yasser dc452e06f8 Merge branch 'main' of https://projects.blender.org/blender/blender into sculpt_mode_add_menu_operators 2023-02-14 00:16:35 +02:00
Tarek Yasser 8f839cd93a UI: Remove redundant operator property/setting assignments. 2023-02-13 22:06:36 +02:00
Tarek Yasser 256489d011 UI: Add the 8 variants of sculpt mesh filter to the sculpt menu.
The 8 variants are: 'SMOOTH', 'SURFACE_SMOOTH', 'INFLATE', 'RELAX',
'RELAX_FACE_SETS' 'SHARPEN', 'ENHANCE_DETAILS' 'ERASE_DISCPLACEMENT',
'RANDOM'.
2023-02-13 20:39:41 +02:00
Tarek Yasser 7ddb21152a UI: Add 8 more operators to the sculpt menu.
Added "Toggle Visibility", "Hide Active Face Set", "Invert Visible",
"Box Trim", "Lasso Trim", "Line Project", "Fair Positions", "Fair
Tangency".
2023-02-11 03:26:23 +02:00
Tarek Yasser 11c6df7a02 UI: Reorder `Sculpt` menu and add Move, Roatte, Scale. 2023-02-10 18:51:19 +02:00