Fix T45577 tiled sculpting not working with brushes requiring a sculpt
plane. Make sure sculpt plane is recalculated for every tiled dab. Note this is not the optimum thing to do, we could cache the original sculpt plane and reuse that, but this would require us to rearrange the logic of tiled sculpting somewhat. This can be a TODO, but for now this will fix the issue.
This commit is contained in:
parent
820d191626
commit
2ae67de944
Notes:
blender-bot
2023-02-14 08:50:57 +01:00
Referenced by issue #45577, Sculpt tiling seems to break some brushes
|
@ -2501,7 +2501,8 @@ static void calc_sculpt_plane(
|
|||
|
||||
if (ss->cache->mirror_symmetry_pass == 0 &&
|
||||
ss->cache->radial_symmetry_pass == 0 &&
|
||||
(ss->cache->first_time || !(brush->flag & BRUSH_ORIGINAL_NORMAL)))
|
||||
(ss->cache->first_time || !(brush->flag & BRUSH_ORIGINAL_NORMAL) ||
|
||||
(sd->paint.symmetry_flags & PAINT_TILE_AXIS_ALL)))
|
||||
{
|
||||
switch (brush->sculpt_plane) {
|
||||
case SCULPT_DISP_DIR_VIEW:
|
||||
|
|
|
@ -1826,6 +1826,7 @@ typedef enum SymmetryFlags {
|
|||
} SymmetryFlags;
|
||||
|
||||
#define PAINT_SYMM_AXIS_ALL (PAINT_SYMM_X | PAINT_SYMM_Y | PAINT_SYMM_Z)
|
||||
#define PAINT_TILE_AXIS_ALL (PAINT_TILE_X | PAINT_TILE_Y | PAINT_TILE_Z)
|
||||
|
||||
/* Sculpt.flags */
|
||||
/* These can eventually be moved to paint flags? */
|
||||
|
|
Loading…
Reference in New Issue