Dependency cycle detected even when the constraint is inactive #105790

Open
opened 2023-03-15 12:59:20 +01:00 by 3DBear · 3 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 527.56

Blender Version
Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash: rB0759f671ce1f
Worked: Never

Short description of error
Blender complains on inactive (disabled) dependency cycles each time when I bake animation.
Unfortunately it affects the baking process (the keys are baked with the delay in one frame).
I know it might not be considered as the bug, but it is a problem:
For instance: I'd use empties to fix feet sliding the ground during the complex character root motion movements.
To make it work first I constraint empties to feets, bake the animation, delete the constraints, then clean up the empties animation so they keep stable toward the surface and finaly constraint the feets to the empties to bake fixed animation.
Defenetly I would not want to create and delete the constraints over and over again: it is much easier to turn them on and off during the work. Same goes with objects that can guide a character or be guided by one during the same scene. We might just want to choose when the object is constrained to the character and when the character should be constrained to the object.

So when the constraint is disabled it should not be considered as the dependency cycles. (It should not be considered in general)
Exact steps for others to reproduce the error

  1. Create some bone and an empty
  2. Add a Copy Transforms constraint to the bone. Choose the empty as the target.
  3. Add a Copy Transforms constraint to the empty. Choose the bone as the target and disable the constraint to break the loop.
  4. Animate empty and try to bake this animation to the bone in a pose mode.
    Once you press Bake Action (with Visual Keying On) you'll have a warning: Dependency cycle detected like if you have both constraints enabled.
    The animation will be baked with the delay in one frame.
**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 527.56 **Blender Version** Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash: `rB0759f671ce1f` Worked: Never **Short description of error** Blender complains on inactive (disabled) dependency cycles each time when I bake animation. Unfortunately it affects the baking process (the keys are baked with the delay in one frame). I know it might not be considered as the bug, but it is a problem: For instance: I'd use empties to fix feet sliding the ground during the complex character root motion movements. To make it work first I constraint empties to feets, bake the animation, delete the constraints, then clean up the empties animation so they keep stable toward the surface and finaly constraint the feets to the empties to bake fixed animation. Defenetly I would not want to create and delete the constraints over and over again: it is much easier to turn them on and off during the work. Same goes with objects that can guide a character or be guided by one during the same scene. We might just want to choose when the object is constrained to the character and when the character should be constrained to the object. So when the constraint is disabled it should not be considered as the dependency cycles. (It should not be considered in general) **Exact steps for others to reproduce the error** 1. Create some bone and an empty 2. Add a Copy Transforms constraint to the bone. Choose the empty as the target. 3. Add a Copy Transforms constraint to the empty. Choose the bone as the target and **disable the constraint to break the loop.** 4. Animate empty and try to bake this animation to the bone in a pose mode. Once you press Bake Action (with Visual Keying On) you'll have a warning: Dependency cycle detected like if you have both constraints enabled. The animation will be baked with the delay in one frame.
3DBear added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-03-15 12:59:21 +01:00

image
You see a message that there is a cycle, even without baking. It seems that something similar has already been discussed (about the visibility of collections with drivers?)
Not sure if this is a know limitation or just a bug.

![image](/attachments/936e9d80-c9b5-42f1-820a-75ef8ecb2073) You see a message that there is a cycle, even without baking. It seems that something similar has already been discussed (about the visibility of collections with drivers?) Not sure if this is a know limitation or just a bug.
522 KiB

I am not aware of exact issue like this one, and I think it should work so will confirm.

I am not aware of exact issue like this one, and I think it should work so will confirm.
Richard Antalik added
Module
Animation & Rigging
and removed
Module
Core
labels 2023-03-16 06:37:20 +01:00
Richard Antalik added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-03-16 07:08:06 +01:00
Iliya Katushenock removed the
Interest
Animation & Rigging
label 2023-07-28 02:51:41 +02:00

I'm finding this to be really obnoxious in my "UPBGE" 0.3 Blender Game Engine project. I do have opposing bone constraints that create a Dependency Cycle, however I toggle them off and on accordingly in my game and it just works. The big issue is that I permanently see the "Detected 'x' dependency cycles" in my console and I need my console to troubleshoot my python code and other errors that may arise.

The solution would be to disregard checking for cycle dependency when a bone constraint is disabled or maybe just add the option to always suppress the warnings and just have faith that I know what I'm doing.

I'm finding this to be really obnoxious in my "UPBGE" 0.3 Blender Game Engine project. I do have opposing bone constraints that create a Dependency Cycle, however I toggle them off and on accordingly in my game and it just works. The big issue is that I permanently see the "Detected 'x' dependency cycles" in my console and I need my console to troubleshoot my python code and other errors that may arise. The solution would be to disregard checking for cycle dependency when a bone constraint is disabled or maybe just add the option to always suppress the warnings and just have faith that I know what I'm doing.
Bart van der Braak added
Type
Bug
and removed
Type
Report
labels 2024-08-14 13:14:12 +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
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
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#105790
No description provided.