Fix: weight and vertex paint radial symmetry wrong with mirror #120931

Merged
Philipp Oeser merged 2 commits from lichtwerk/blender:120843_b into main 2024-04-26 07:51:22 +02:00
Member

Both vertexpaint and weightpaint would only apply all of radial symmetry
for the "initial stroke".
When going over the combinations of symmetry axis, some of radial
symmetry would be skipped, e.g. when mirroring from right to left with
Mirror X turned ON, a dab on the right would have radial symmetry from
that point, and an additional dab on the left from mirroring (but the
mirrored dab would not have radial symmetry on its own).

This does not lead to symmetric results at all, sculptmode also does not
behave that way (there, radial symmetry is performed on the mirror axis
as well).

Now do the same thing as in sculptmode to get symmetric results when
using mirror and radial symmetry together.
Also use the utility function to skip invalid symmetry iterations.

Stumbled over this when looking into #120843

Both vertexpaint and weightpaint would only apply all of radial symmetry for the "initial stroke". When going over the combinations of symmetry axis, some of radial symmetry would be skipped, e.g. when mirroring from right to left with `Mirror X` turned ON, a dab on the right would have radial symmetry from that point, and an additional dab on the left from mirroring (but the mirrored dab would not have radial symmetry on its own). This does not lead to symmetric results at all, sculptmode also does not behave that way (there, radial symmetry is performed on the mirror axis as well). Now do the same thing as in sculptmode to get symmetric results when using mirror and radial symmetry together. Also use the utility function to skip invalid symmetry iterations. Stumbled over this when looking into #120843
Philipp Oeser added 1 commit 2024-04-22 14:14:17 +02:00
c7f32525b2 Fix: weight and vertex paint radial symmetry wrong with mirror
Both vertexpaint and weightpaint would only apply all of radial symmetry
for the "initial stroke".
When going over the combinations of symmetry axis, some of radial
symmetry would be skipped, e.g. when mirroring from right to left with
`Mirror X` turned ON, a dab on the right would have radial symmetry from
that point, and an additional dab on the left from mirroring (but the
mirrored dab would not have radial symmetry on its own).

This does not lead to symmetric results at all, sculptmode also does not
behave that way (there, radial symmetry is performed on the mirror axis
as well).

Now do the same thing as in sculptmode to get symmetric results when
using mirror and radial symmetry together.
Also use the utility function to skip invalid symmetry iterations.

Stumbled over this when looking into #120843
Philipp Oeser added this to the Sculpt, Paint & Texture project 2024-04-22 14:16:37 +02:00
Philipp Oeser requested review from Julien Kaspar 2024-04-22 14:16:47 +02:00
Philipp Oeser requested review from Campbell Barton 2024-04-22 14:16:57 +02:00
Campbell Barton approved these changes 2024-04-24 12:14:26 +02:00
Campbell Barton left a comment
Owner

Since this is copied and I assume you tested well, I don't see a problem with it, however I think it's worth cross referencing do_symmetrical_brush_actions sculpt <-> vertex paint - in code-comments. So this doesn't get out of sync again.

Since this is copied and I assume you tested well, I don't see a problem with it, however I think it's worth cross referencing `do_symmetrical_brush_actions` sculpt <-> vertex paint - in code-comments. So this doesn't get out of sync again.
Philipp Oeser added 1 commit 2024-04-26 07:46:12 +02:00
Philipp Oeser merged commit 4d49c78e74 into main 2024-04-26 07:51:22 +02:00
Philipp Oeser deleted branch 120843_b 2024-04-26 07:51:25 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120931
No description provided.