Modifier's persistent_uid are not correctly assigned when appending or opening objects prior 4.2 #125952
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#125952
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Operating system: Linux-6.9.3-76060903-generic-x86_64-with-glibc2.35 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 555.58.02
Blender Version
Broken: version: 4.2.1 Release Candidate, branch: blender-v4.2-release, commit date: 2024-08-05 13:24, hash:
174f8de75e63
Worked: (newest version of Blender that worked as expected)
Short description of error
Blender 4.2 can't assign modifier's persistent_uids when opening or appending objects created in earlier versions of Blender.
Exact steps for others to reproduce the error
Video for full contextualization:
Kind regards,
Cosmo.
UID is a hash, it can be just 0,1,2... enumeration, but this also can be int_max, so you should not depend on the value of this UID, but use this only as a hash.
Ok, so in other words these persistent_uid was not meant to store unique-random-integer-hash per modifier?
You're saying that we gonna have multiple same uids in different objects at the same time so... it dos not have the usability potential that I initially thought it would have?
I do not see any duplication of the uid at the report, ony that they are doned in different way.
I've tried myself in 4.2 deleting the latest modifier and then adding it back. It is assigned with the same hash. (shouldn't be a different new integer?).
Also if you duplicate a existing object with modifiers, the hashes are going to remain the same in the other object.
I assumed Blender would assign unique ones when the duplication happens too, but I probably miss interpreting how this persistent_uid is created and what could be its usability.
I assumed this would be a random number per modifier but it seems this is not the case.
Nope, it does not guarantee anything except that the number itself is unique in the list.
Hi, thanks for the report. Doesn't look like a bug.
persistent_uid
is introduced in 4.1. According to versioning code, if you open a older file with modifier in 4.1 and newer, persistent_uid of these modifiers will start from 1 then incremented by 1 for every next modifier on that object, see:Thank you for the clarifications, guys.
Best regards,
Cosmo.