Sculpt: Initial data oriented refactor for scrape and fill brushes #123038

Merged
Hans Goudey merged 5 commits from HooglyBoogly/blender:sculpt-brushes-3 into main 2024-06-11 20:28:35 +02:00
Member

Part of #118145.
These two are almost exactly the same. The difference between them
is just an inverted condition and negating the radius. That can be changed
later, maybe by implementing a more advanced fill algorithm. But for the
purposes of this refactor, mainly keep the duplication. I just shared two
functions as a compromise to not duplicate everything. It also shows
the reader that the implementations are currently linked without fully
conflating the two and making future changes harder.

Part of #118145. These two are almost exactly the same. The difference between them is just an inverted condition and negating the radius. That can be changed later, maybe by implementing a more advanced fill algorithm. But for the purposes of this refactor, mainly keep the duplication. I just shared two functions as a compromise to not duplicate *everything*. It also shows the reader that the implementations are currently linked without fully conflating the two and making future changes harder.
Hans Goudey added 2 commits 2024-06-10 22:32:55 +02:00
Hans Goudey requested review from Raul Fernandez Hernandez 2024-06-10 22:39:38 +02:00
Hans Goudey requested review from Sergey Sharybin 2024-06-10 22:39:39 +02:00
Hans Goudey requested review from Sean Kennedy 2024-06-10 22:39:39 +02:00
Hans Goudey added this to the Sculpt, Paint & Texture project 2024-06-10 22:39:45 +02:00
Hans Goudey requested review from Sean Kim 2024-06-11 04:02:00 +02:00
Philipp Oeser removed review request for Sean Kennedy 2024-06-11 08:53:26 +02:00
Sergey Sharybin requested changes 2024-06-11 11:16:15 +02:00
Dismissed
Sergey Sharybin left a comment
Owner

Needs a simple fix to make code compilable.
With that in place I could not see issues with the brushes.

Needs a simple fix to make code compilable. With that in place I could not see issues with the brushes.
@ -117,6 +117,7 @@ set(SRC
brushes/draw.cc
brushes/draw_vector_displacement.cc
brushes/scrape.cc

Missing brushes/fill.cc

Missing `brushes/fill.cc`
HooglyBoogly marked this conversation as resolved
Hans Goudey added 3 commits 2024-06-11 17:53:34 +02:00
Hans Goudey requested review from Sergey Sharybin 2024-06-11 17:53:41 +02:00
Sergey Sharybin approved these changes 2024-06-11 18:36:39 +02:00
Hans Goudey merged commit 68ef1d6f36 into main 2024-06-11 20:28:35 +02:00
Hans Goudey deleted branch sculpt-brushes-3 2024-06-11 20:28:38 +02:00
Raul Fernandez Hernandez approved these changes 2024-06-11 20:48:42 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 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#123038
No description provided.