Undo Can Get Stuck If Sculpt Mode Has Been Entered via Undo #84470

Closed
opened 2021-01-06 19:49:38 +01:00 by Philip Holzmann · 9 comments

System Information
Operating system: Windows 64 bit
Graphics card: Nvidia GTX 750 Ti

Blender Version
Broken: 2.91.0 release, 2.92.0 alpha 9b17e71c23
Worked: ?

Short description of error
With a certain sequence of undo, redo and sculpt operations, part of the mesh can disappear, undo can get "stuck" or the mesh might even change.
They all appear to be triggered by entering the sculpt mode via an undo or redo operation.

(I'm having difficulty reproducing the mesh partially disappearing, so this case is not described here.)

Exact steps for others to reproduce the error
292_sculpt_undo.blend
Open the file.
You are already in Sculpt Mode; Dyntopo is on.

(In this example sequence, the undo will get "stuck" and will need a redo to undo further.)

  1. Sculpt one dab on any face of the cube.
  2. Switch to Object Mode.
  3. Undo. (You are now back in Sculpt Mode, the dab you drew is still there.)
  4. Paint a dab on another face of the cube.
  5. Undo (The second dab disappears.)
  6. Undo again. (Dyntopo is switched off.)
  7. Undo again. (Nothing happens, no matter how often you press it. The first dab is still there.)
  8. Redo. (Nothing happens.)
  9. Undo. (The first dab disappears.)
**System Information** Operating system: Windows 64 bit Graphics card: Nvidia GTX 750 Ti **Blender Version** Broken: 2.91.0 release, 2.92.0 alpha 9b17e71c23a9 Worked: ? **Short description of error** With a certain sequence of undo, redo and sculpt operations, part of the mesh can disappear, undo can get "stuck" or the mesh might even change. They all appear to be triggered by entering the sculpt mode via an undo or redo operation. (I'm having difficulty reproducing the mesh partially disappearing, so this case is not described here.) **Exact steps for others to reproduce the error** [292_sculpt_undo.blend](https://archive.blender.org/developer/F9553410/292_sculpt_undo.blend) Open the file. You are already in Sculpt Mode; Dyntopo is on. (In this example sequence, the undo will get "stuck" and will need a redo to undo further.) 1. Sculpt one dab on any face of the cube. 2. Switch to Object Mode. 3. Undo. *(You are now back in Sculpt Mode, the dab you drew is still there.)* 4. Paint a dab on another face of the cube. 5. Undo *(The second dab disappears.)* 6. Undo again. *(Dyntopo is switched off.)* 7. Undo again. *(Nothing happens, no matter how often you press it. The first dab is still there.)* 8. Redo. *(Nothing happens.)* 9. Undo. *(The first dab disappears.)*

Added subscriber: @Foaly

Added subscriber: @Foaly

I just remembered this one: #80174.
It may be related.

I just remembered this one: #80174. It may be related.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

When trying to reproduce the problem I came across this assert:

BLI_assert failed: C:\Germano\Dev\BlenderDev\blender\source\blender\blenkernel\intern\paint.c:1656, sculpt_update_object(), at 'CustomData_has_layer(&me->pdata, CD_SCULPT_FACE_SETS)'

I don't know if this report is related to other reports involving the sculpt undo system, but as the assert seems to be something new, I am confirming it as a separate report.


@Foaly, when you say "4. Paint a dab on another face of the cube", do you mean using the same "Draw" brush? (I'm not sure if I follow the steps correctly)

When trying to reproduce the problem I came across this assert: ``` BLI_assert failed: C:\Germano\Dev\BlenderDev\blender\source\blender\blenkernel\intern\paint.c:1656, sculpt_update_object(), at 'CustomData_has_layer(&me->pdata, CD_SCULPT_FACE_SETS)' ``` I don't know if this report is related to other reports involving the sculpt undo system, but as the assert seems to be something new, I am confirming it as a separate report. --- @Foaly, when you say `"4. Paint a dab on another face of the cube"`, do you mean using the same "Draw" brush? (I'm not sure if I follow the steps correctly)

Yes, just draw with the draw brush.
The things in parentheses are not steps, they are what happens.

Yes, just draw with the draw brush. The things in parentheses are not steps, they are what happens.

Added subscriber: @mont29

Added subscriber: @mont29

Will merge, not sure about the assert (could be caused by same issue, or some missing actual update of data), but main root issue is same as #82532.

Will merge, not sure about the assert (could be caused by same issue, or some missing actual update of data), but main root issue is same as #82532.

Closed as duplicate of #82532

Closed as duplicate of #82532
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
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#84470
No description provided.