Error when collection visibility property is used in driver expression (fixed in main, backport request) #109570
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#109570
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
Blender: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash:
c7fc78b81e
platform: 'macOS-12.6-x86_64-i386-64bit'
Short description of error
When trying to use collection properties as a driver, the following error comes up in the terminal
This appears to be related to #98525, which occurs when the wrong data block type is assigned in the driver. However, collection is correctly assigned in this case.
It looks like the GR in id: GRCollection stands for group, since these first two letters are OB for object drivers, ME for mesh drivers, etc. My guess is somewhere this was supposed to be changed from GR to CL and it's been missed so far.
Exact steps for others to reproduce the error
In the attached file, the cube viewport visibility is supposed to be driven by the collection viewport visibility. It does not update automatically (though it can be convinced to update manually,) and the error above appears on depsgraph update.
Hi, I can confirm the error in console
This is not correct though. First two letters of id represents id_type (ID_GR is used for collection) and remaining letter refers to the name of the id (if collection name is col-1, id will be GRcol-1)
Appears to be fixed in 4.0
Driver ID not updated from Group to Collectionto Error when collection visibility property is used in driver expressionFixed between
8c6908eba578 - 23862ec60e38
@lichtwerk , can you check?
I think one of the Sergey's commit on depsgragh fixed this bug (
61ed5b3d24
?).Yeah,
61ed5b3d24
seems to be the fix (not sure if94f5ea9731
would also be needed).@Sergey : if you consider these safe for backporting to 3.6 LTS, you could add them to #109399 (then close this issue).
If not, I think this issue could be closed straight away (since it is fixed in main).
Error when collection visibility property is used in driver expressionto Error when collection visibility property is used in driver expression (fixed in main, backport request)@lichtwerk I am not aware of any issues caused by those commits (and yes, you need both of them). So from this point of view they should be safe and trivial to cherry-pick.
What puzzles me a bit is that it was not intended to be a bug fix. It is not impossible there is initially unforeseen effect. So if you sure it is the commit which fixed the issue and is fine from the LTS release perspective we surely can add those commits to the backport queue.