Pose bone ID property driver causes dependency cycle #87039

Closed
opened 2021-03-30 12:20:46 +02:00 by Lukas Tönne · 10 comments
Member

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: 02948a2cab
Worked: n/a

Short description of error
Two bones with ID properties of same name cause dependency cycle when one drives the other.
Workaround exists by prefixing property names.

Exact steps for others to reproduce the error

  • Add armature with 2 bones
  • In pose mode, give each bone a custom property with the same name (!)
  • Add a driver to one of the properties
  • Use "Single Property" variable and enter the data path of the other bone's property (e.g. pose.bones["Bone1"]["prop"])
    Depsgraph will report a dependency cycle, apparently it cannot distinguish between bones:
Dependency cycle detected:
  OBArmature1/Parameters Component/DRIVER(pose.bones["Bone2"]["prop"]) depends on
  OBArmature1/Parameters Component/ID_PROPERTY(prop) via 'RNA Target -> Driver'
  OBArmature1/Parameters Component/DRIVER(pose.bones["Bone2"]["prop"]) via 'Driver -> Driven Property'
Detected 1 dependency cycles

Using unique property names can be used to work around this, e.g. by prefixing each property with the bone name.

Example file:
IDPropDepCycle.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `02948a2cab` Worked: n/a **Short description of error** Two bones with ID properties *of same name* cause dependency cycle when one drives the other. Workaround exists by prefixing property names. **Exact steps for others to reproduce the error** * Add armature with 2 bones * In pose mode, give each bone a custom property **with the same name** (!) * Add a driver to one of the properties * Use "Single Property" variable and enter the data path of the other bone's property (e.g. `pose.bones["Bone1"]["prop"]`) Depsgraph will report a dependency cycle, apparently it cannot distinguish between bones: ``` Dependency cycle detected: OBArmature1/Parameters Component/DRIVER(pose.bones["Bone2"]["prop"]) depends on OBArmature1/Parameters Component/ID_PROPERTY(prop) via 'RNA Target -> Driver' OBArmature1/Parameters Component/DRIVER(pose.bones["Bone2"]["prop"]) via 'Driver -> Driven Property' Detected 1 dependency cycles ``` Using unique property names can be used to work around this, e.g. by prefixing each property with the bone name. Example file: [IDPropDepCycle.blend](https://archive.blender.org/developer/F9914402/IDPropDepCycle.blend)
Author
Member

Added subscriber: @LukasTonne

Added subscriber: @LukasTonne

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm.
Since the property is specific to the bone, its name should not conflict with the other's property name.

I can confirm. Since the property is specific to the bone, its name should not conflict with the other's property name.
Lukas Tönne self-assigned this 2021-04-02 13:07:30 +02:00

Added subscribers: @dr.sybren, @ChrisLend

Added subscribers: @dr.sybren, @ChrisLend

This is solved in 3.3.1 but not in 2.93.11 @dr.sybren

This is solved in 3.3.1 but not in 2.93.11 @dr.sybren

This is weird, being fixed with the patch that would fix it still open & under review. @LukasTonne could you figure out which commit fixed this?

This is weird, being fixed with the patch that would fix it still open & under review. @LukasTonne could you figure out which commit fixed this?
Author
Member

Looks like 7bcf21e66e
This is only in 3.1.0 and upwards.

Looks like 7bcf21e66e This is only in 3.1.0 and upwards.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Thanks for looking that up Lukas. I think it's safe enough, so I cherrypicked the commit to the blender-v2.93-release branch.

Thanks for looking that up Lukas. I think it's safe enough, so I cherrypicked the commit to the `blender-v2.93-release` branch.
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
4 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#87039
No description provided.