Regression: Activating DynTopo creates a hidden sculpt mask attribute that gets duplicated with every activation #119426

Closed
opened 2024-03-13 16:24:21 +01:00 by Tolkfan · 2 comments

System Information
Operating system: Windows 10
Graphics card: Nvidia

Blender Version
Broken: 4.1 (Beta 13 Mar 03:20 6b81fbced817)
Worked: 4.0

Short description of error

When DynTopo is activated on an object, a hidden .sculpt_mask attribute is immediately created (not normal behavior) and then duplicated with each activation (definitely not normal behavior).

This .sculpt_mask attribute triggers the DynTopo warning every time you try to turn on Dyntopo. It also disables DynTopo every time you switch between objects with Alt+Q. Then you have to turn on Dyntopo on the object again, which creates a new duplicate, and pretty soon you end up with a lot of invisible duplicates... not to mention the constant Dyntopo warning popups.

The duplicates are not removed with the bpy.ops.mesh.customdata_mask_clear() operator in Data tab -> Geometry Data
The .sculpt_mask attribute is already present on the default cube, but not on a newly created one.

Exact steps for others to reproduce the error

  • starting from the default cube
  • on the cube, toggle DynTopo on and off a few times
  • Check the cube's attribute list in the python console, there will be .sculpt_mask duplicates for every time you toggled Dyntopo
**System Information** Operating system: Windows 10 Graphics card: Nvidia **Blender Version** Broken: 4.1 (Beta 13 Mar 03:20 `6b81fbced817`) Worked: 4.0 **Short description of error** When DynTopo is activated on an object, a hidden `.sculpt_mask` attribute is immediately created (not normal behavior) and then duplicated with each activation (definitely not normal behavior). This `.sculpt_mask` attribute triggers the DynTopo warning every time you try to turn on Dyntopo. It also disables DynTopo every time you switch between objects with Alt+Q. Then you have to turn on Dyntopo on the object again, which creates a new duplicate, and pretty soon you end up with a lot of invisible duplicates... not to mention the constant Dyntopo warning popups. The duplicates are not removed with the `bpy.ops.mesh.customdata_mask_clear()` operator in Data tab -> Geometry Data The `.sculpt_mask` attribute is already present on the default cube, but not on a newly created one. **Exact steps for others to reproduce the error** - starting from the default cube - on the cube, toggle DynTopo on and off a few times - Check the cube's attribute list in the python console, there will be `.sculpt_mask` duplicates for every time you toggled Dyntopo
Tolkfan added the
Status
Needs Triage
Type
Report
Priority
Normal
labels 2024-03-13 16:24:21 +01:00
Iliya Katushenock added the
Interest
Sculpt, Paint & Texture
label 2024-03-13 16:32:32 +01:00
Iliya Katushenock changed title from Activating DynTopo creates a hidden sculpt mask attribute that gets duplicated with every activation to Regression: Activating DynTopo creates a hidden sculpt mask attribute that gets duplicated with every activation 2024-03-13 16:32:52 +01:00

I can confirm.
Caused by f2bcd73bd2
@HooglyBoogly ^

I can confirm. Caused by f2bcd73bd25625d6b5c1194a4199e96fc5fafa2e @HooglyBoogly ^
Hans Goudey self-assigned this 2024-03-13 19:27:25 +01:00
Hans Goudey added
Type
Bug
and removed
Type
Report
labels 2024-03-13 20:22:16 +01:00
Author

I think this issue: #119177 is caused by the same thing.

I think this issue: https://projects.blender.org/blender/blender/issues/119177 is caused by the same thing.
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-03-14 13:23:39 +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
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#119426
No description provided.