Error in refs counting #112790

Closed
opened 2023-09-23 21:30:52 +02:00 by sanek122005 · 2 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce MX230/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 531.79

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-22 23:32, hash: 7c636c170273

Short description of error
blender incorrectly counts the number of links for linked data blocks when they participate in more than one hierarchy (collection, object child, etc)

image

bug.png

Exact steps for others to reproduce the error

  1. Link house_1 collection from file
  2. Override getted collection
  3. Select any mesh object and go to mesh data tab in properties editor
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce MX230/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 531.79 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-22 23:32, hash: `7c636c170273` **Short description of error** blender incorrectly counts the number of links for linked data blocks when they participate in more than one hierarchy (collection, object child, etc) ![image](/attachments/98c33c12-ff2f-4951-bb36-c5ef1fab88eb) ![bug.png](/attachments/4afdb664-e388-4385-97f4-9eb031e88e31) **Exact steps for others to reproduce the error** 1. Link house_1 collection from file 2. Override getted collection 3. Select any mesh object and go to mesh data tab in properties editor
sanek122005 added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-09-23 21:30:53 +02:00
Member

Can confirm, seems unexpected.

bpy.data.user_map(subset=(bpy.data.meshes['Cube.003'], )) in the library file only gives one parent object user, when linked and overridden, the same parent appears twice

@mont29 : is this expected behavior?

Can confirm, seems unexpected. `bpy.data.user_map(subset=(bpy.data.meshes['Cube.003'], ))` in the library file only gives one parent object user, when linked and overridden, the same parent appears twice @mont29 : is this expected behavior?
Philipp Oeser added
Status
Confirmed
Interest
Overrides
Module
Core
and removed
Status
Needs Triage
labels 2023-09-25 10:18:00 +02:00

That is expected, since the linked Mesh ID is not overridden, it's used by both the linked object, and the local override object...

That is expected, since the linked Mesh ID is not overridden, it's used by both the linked object, and the local override object...
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-09-25 16:07:25 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#112790
No description provided.