Persistent Base Layer Brush doesnt work first time and after Undo #75797

Open
opened 2020-04-16 19:31:39 +02:00 by Matthias Pieroth · 10 comments

System Information
Operating system: Windows 10

Blender Version
2.83 master and 2.90 master
Commit: 47f46637be

Short description of error
When setting a persistent base for the new layer sculpting brush, then sculpt onto a mesh and undo, the persistent layer is deleted with the undo and the same happens when setting the persistent base the first time.

Exact steps for others to reproduce the error

  1. Add a UV sphere and remesh in sculpt mode so that you can use the layer brush
  2. Enable Persistent for the brush and press Set persistent base button
  3. Sculpt with layer brush onto the mesh

image.png

  1. sculpt a second time onto the mesh on a different area and then over the area where using the layer brush the first time:

It's not "merging the layer" correctly

image.png

  1. Undo, set persistent base again and then sculpt

image.png

  1. Then sculpt on a different area and the layers are merged:

image.png

  1. After undo the sculptings so that we have a sphere again and then sculpt with layer brush, the persistent base is again lost:

image.png

**System Information** Operating system: Windows 10 **Blender Version** 2.83 master and 2.90 master Commit: 47f46637be1bef9672ede0ab6795a7e9ea97fc6a **Short description of error** When setting a persistent base for the new layer sculpting brush, then sculpt onto a mesh and undo, the persistent layer is deleted with the undo and the same happens when setting the persistent base the first time. **Exact steps for others to reproduce the error** 1. Add a UV sphere and remesh in sculpt mode so that you can use the layer brush 2. Enable **Persistent** for the brush and press **Set persistent base** button 3. Sculpt with layer brush onto the mesh ![image.png](https://archive.blender.org/developer/F8477183/image.png) 4. sculpt a second time onto the mesh on a different area and then over the area where using the layer brush the first time: **It's not "merging the layer" correctly** ![image.png](https://archive.blender.org/developer/F8477181/image.png) 5. Undo, set persistent base again and then sculpt ![image.png](https://archive.blender.org/developer/F8477185/image.png) 6. Then sculpt on a different area and the layers are merged: ![image.png](https://archive.blender.org/developer/F8477187/image.png) 7. After undo the sculptings so that we have a sphere again and then sculpt with layer brush, the persistent base is again lost: ![image.png](https://archive.blender.org/developer/F8477191/image.png)

Added subscriber: @Jayanam

Added subscriber: @Jayanam
Pablo Dobarro self-assigned this 2020-04-16 19:40:37 +02:00

@PabloDobarro : It seems to be due to remesh. Try this

  1. Voxel Remesh
  2. Set Persistent base
  3. Sculpt the layer like described in the issue, then it happens, layers are not merged.

When You Set Persistent Base 2 times (2 times pressing the button after remesh) it doesnt happen, the layers are merged correctly.

@PabloDobarro : It seems to be due to remesh. Try this 1. Voxel Remesh 2. Set Persistent base 3. Sculpt the layer like described in the issue, then it happens, layers are not merged. When You Set Persistent Base 2 times (2 times pressing the button after remesh) it doesnt happen, the layers are merged correctly.
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

confirmed due to the claim.

confirmed due to the claim.

Added subscriber: @funksy

Added subscriber: @funksy
Member

I'm moving this to know issues for now because the proper fix will require a better design to store an mesh states like D6594. The issue is that the persistent layer info is freed with the PBVH to be sure that the current info matches the current sculpt geometry, so an PBVH rebuild deletes the persistent layer. The PBVH rebuilds with operations that change geomety like remeshing (it makes sense to delete the persistent layer in this case) but it also rebuilds in some other situation when it should not be needed, like changing mesh properties, certain undo steps or saving the file. Maybe we can fix this issue just by investigating all the not needed PBVH rebuilds that may happen (which should also be fixed to avoid performance problems), but I still think that the proper design for this will require mesh state storage management.

I'm moving this to know issues for now because the proper fix will require a better design to store an mesh states like [D6594](https://archive.blender.org/developer/D6594). The issue is that the persistent layer info is freed with the PBVH to be sure that the current info matches the current sculpt geometry, so an PBVH rebuild deletes the persistent layer. The PBVH rebuilds with operations that change geomety like remeshing (it makes sense to delete the persistent layer in this case) but it also rebuilds in some other situation when it should not be needed, like changing mesh properties, certain undo steps or saving the file. Maybe we can fix this issue just by investigating all the not needed PBVH rebuilds that may happen (which should also be fixed to avoid performance problems), but I still think that the proper design for this will require mesh state storage management.

Added subscriber: @s12a

Added subscriber: @s12a

I can confirm it happening on Blender 2.90 31bc76e. The Set Persistent Base button must be initially pressed twice in quick succession for the Persistent option to properly start working. Tested on the default sphere after starting Blender with the Sculpting workspace. I did not have to remesh the sphere.

I can confirm it happening on Blender 2.90 31bc76e. The *Set Persistent Base* button must be initially pressed twice in quick succession for the *Persistent* option to properly start working. Tested on the default sphere after starting Blender with the *Sculpting* workspace. I did not have to remesh the sphere.

Added subscriber: @Russ1642

Added subscriber: @Russ1642
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:34 +01: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 project
No Assignees
6 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#75797
No description provided.