Fix #112817: Draw Face Sets not working #112824

Closed
Omar-Mokhtar wants to merge 2 commits from Omar-Mokhtar/blender:fix-112817 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

This is the fix for this issue: #112817

The flags PBVH_FullyMasked and PBVH_FullyUnmasked were being set during the expand operation. And it's not reset.
When the user goes back to drawing faces using a stroke, the function SCULPT_search_sphere returns false after testing the fully masked flag using BKE_pbvh_node_fully_masked_get. Which was set from the previous expand operation.

The fix is simply resetting these flags after the expand operation is done.

This is the fix for this issue: https://projects.blender.org/blender/blender/issues/112817 The flags PBVH_FullyMasked and PBVH_FullyUnmasked were being set during the expand operation. And it's not reset. When the user goes back to drawing faces using a stroke, the function SCULPT_search_sphere returns false after testing the fully masked flag using BKE_pbvh_node_fully_masked_get. Which was set from the previous expand operation. The fix is simply resetting these flags after the expand operation is done.
Omar-Mokhtar added 2 commits 2023-09-25 01:49:59 +02:00
Iliya Katushenock changed title from Fixing issue #112817 to Fix #112817: Draw Face Sets not working 2023-09-25 01:52:28 +02:00
Iliya Katushenock added this to the Sculpt, Paint & Texture project 2023-09-25 01:52:32 +02:00
Hans Goudey requested review from Hans Goudey 2023-09-25 06:18:49 +02:00
Member

Thanks! The best solution was a bit different (406de58674), but your investigation was really helpful.

Thanks! The best solution was a bit different (406de58674afc10c34f29b6eecf314a8c99cb88f), but your investigation was really helpful.
Hans Goudey closed this pull request 2023-09-27 23:13:58 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
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#112824
No description provided.