Blender won't update mesh's usercount when deleting object datablocks in Editmode #53363
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#53363
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Xubuntu 14.04
Nvidia GTX 750 Ti
Blender Version
Stable Blender 2.79. Hash: 5bd8ac9abfa
Short description of error
Blender won't update mesh's usercount when deleting object datablocks in Editmode.
I don't know if this is a bug or just expected behaviour in this context, but let's see.
Exact steps for others to reproduce the error
Open up Blender, select the default Cube and enter Editmode
In a console, just add the current object to a variable.
And now, as you can see in the Object Data context, the Cube still has 2 users, even though the other Object doesn't exist in the Blend File.
I didn't found any way to update the user count. But I think this is a bug, because there's no problem when doing this in Object Mode.
I found this bug because I can't use the ray_cast function in Edit Mode (I need to keep in this mode), and I'm forced to create a temporal copy to use the function and then, discard the object. But when doing so, the mesh data usercount gets messed, though I can confirm it doesn't use any extra memory.
Changed status to: 'Open'
Added subscriber: @chaos-4
Added subscriber: @zeauro
I can reproduce the problem with 2.79 and master 69b5165.
It is really specific to edit mode.
It does not happen in Sculpt mode or Vertex paint mode, too.
I could see addition and deletion of object data in blend file view of outliner. But usercount is not updated.
Added subscribers: @mont29, @lichtwerk
@mont29: mind having a look?
This issue was referenced by blender/blender@566eb60d81
Changed status from 'Open' to: 'Resolved'