Fix T72251: Add rotate brush as constrained by radius for automasking

This brush should be added to the set of brushes where we know which
vertices are going to be affected by the brush when starting the stroke.
This way we can limit the automasking only to those vertices instead of
flood filling the whole mesh from the active vertex.

All brushes that are not in this set will automask by flood filling the
mesh when starting the stroke. To improve this and make it work as most
users expect, we need a fast way to calculate topological distances on
high poly meshes.

Reviewed By: jbakker

Maniphest Tasks: T72251

Differential Revision: https://developer.blender.org/D6376
This commit is contained in:
Pablo Dobarro 2019-12-07 20:01:39 +01:00
parent 4f70af34e0
commit 55daa0d444
Notes: blender-bot 2023-02-14 00:00:06 +01:00
Referenced by issue #72562, Mantaflow: Same particles for Spray, Foam and Bubble
Referenced by issue #72251, Topology automasking doesn't work with any brush instead of grab brush
1 changed files with 1 additions and 1 deletions

View File

@ -1256,7 +1256,7 @@ static bool sculpt_automasking_is_constrained_by_radius(Brush *br)
return false;
}
if (ELEM(br->sculpt_tool, SCULPT_TOOL_GRAB, SCULPT_TOOL_THUMB)) {
if (ELEM(br->sculpt_tool, SCULPT_TOOL_GRAB, SCULPT_TOOL_THUMB, SCULPT_TOOL_ROTATE)) {
return true;
}
return false;