Mesh: Add operator to select elements based on boolean attribute #113772

Merged
Hans Goudey merged 3 commits from HooglyBoogly/blender:mesh-edit-select-by-attribute into blender-v4.0-release 2023-10-17 09:25:00 +02:00

3 Commits

Author SHA1 Message Date
Hans Goudey 3240bd549a Add "changed" check and don't affect hidden faces 2023-10-17 09:23:53 +02:00
Hans Goudey b5e9ba1e00 Merge branch 'blender-v4.0-release' into mesh-edit-select-by-attribute 2023-10-17 09:18:34 +02:00
Hans Goudey ebdf2e4aa5 Mesh: Add operator to select elements based on boolean attribute
Adds a "Select by Attribute" operator as mentioned in the discussion in
#105317. This is done in 4.0 to limit the breaking aspect of the removal
of face maps. The selection storage functionality is replaced by boolean
attributes. We already have a way to control the data in the boolean
attribute with the "Set Attribute" operator, but we didn't have a way to
convert the attribute into a selection.

This operator works on the active attribute if is a boolean attribute
and isn't on the face corner domain. It adds to the existing selection
similar to other existing operators.

While this behavior can be recreated as a node tool, we add it as a
builtin operator here to avoid limitations of the new node-based
tool system and to make the late-in-the-release-cycle change safer.
2023-10-16 14:16:20 +02:00