Bone constrain 'IK' not updating correctly on armature overrides #100128

Closed
opened 2022-08-01 19:56:22 +02:00 by Germano Cavalcante · 16 comments

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-29 22:05, hash: 84dcf12ceb
Worked: version: 3.0.0 Alpha, branch: master, commit date: 2021-05-04 22:35, hash: d08cc63e2f

Short description of error
When loading a file with armature as override, the IK constrain is sometimes not updated correctly.
It seems to involve Poly Target when it points to an override.
GIF.gif

This can cause a lot of adverse behavior in Rigs.
Noticed when investigating #100073 (Regression: Broken library overrides in 3.2+)

Exact steps for others to reproduce the error

  • Open blender
  • Optionally delete all objects
  • Link the object Ains_rig in the attached .blend file (lib.blend)
  • In the outliner, right click on the linked object, go to {nav ID Data} and click in Make Library Override Hierarchy
  • Salve the file
  • Go to {nav File} and Revert
    lib.blend
**Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-29 22:05, hash: `84dcf12ceb` Worked: version: 3.0.0 Alpha, branch: master, commit date: 2021-05-04 22:35, hash: `d08cc63e2f` **Short description of error** When loading a file with armature as override, the `IK` constrain is sometimes not updated correctly. It seems to involve `Poly Target` when it points to an override. ![GIF.gif](https://archive.blender.org/developer/F13329873/GIF.gif) This can cause a lot of adverse behavior in Rigs. Noticed when investigating #100073 (Regression: Broken library overrides in 3.2+) **Exact steps for others to reproduce the error** - Open blender - Optionally delete all objects - Link the object `Ains_rig` in the attached .blend file (`lib.blend`) - In the outliner, right click on the linked object, go to {nav ID Data} and click in `Make Library Override Hierarchy` - Salve the file - Go to {nav File} and `Revert` [lib.blend](https://archive.blender.org/developer/F13331395/lib.blend)
Author
Member

Added subscriber: @mano-wii

Added subscriber: @mano-wii
Author
Member

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

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

Added subscriber: @Vyach

Added subscriber: @Vyach

Added subscriber: @mont29

Added subscriber: @mont29

@mano-wii not sure what that file is, but think you got confused and did not upload the right one? This one already contains an override to a (missing) Rig_simpl.blend lib...

@mano-wii not sure what that file is, but think you got confused and did not upload the right one? This one already contains an override to a (missing) `Rig_simpl.blend` lib...

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

@mont29 demo gif isnt so obvious.
Z and X axis wasn`t saved properly and reverted

@mont29 demo gif isnt so obvious. Z and X axis wasn`t saved properly and reverted
Author
Member

In fact, I confused the files. I put the correct one now.

In fact, I confused the files. I put the correct one now.
Author
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Added subscriber: @brecht

Added subscriber: @brecht

Afaikt, this is not related to liboverrides.

Even in your original lib file, the behavior of the bone when you have defined the (same!) ID as pole target, but without a bone, is broke?

@brecht would expect that when ID target is set, but not bone one, and it is the same ID as the owner one, it is simply ignored (considered as unset) ?

Afaikt, this is not related to liboverrides. Even in your original `lib` file, the behavior of the bone when you have defined the (same!) ID as pole target, but without a bone, is broke? @brecht would expect that when ID target is set, but not bone one, and it is the same ID as the owner one, it is simply ignored (considered as unset) ?

The logic in test_constraint right now is to disable the constraint for invalid pole targets (notice the icon turning red). I think that is better than ignoring the pole target even though a target is set, to me the thing to be improve would be to show an error message why like modifiers do.

But either way is unrelated to overrides.

The logic in `test_constraint` right now is to disable the constraint for invalid pole targets (notice the icon turning red). I think that is better than ignoring the pole target even though a target is set, to me the thing to be improve would be to show an error message why like modifiers do. But either way is unrelated to overrides.
Author
Member

This was something I noticed in the original file. I also found it strange, but I imagined that, as it doesn't have a referenced bone, the object's origin would be the position of the Pole Target.
image.png

However testing, it seems that IK stops working in this situation. So the bug appears to be an undefined behavior.
I'll try to edit the lib, but since it's a matter of Constraint misuse, in my opinion we can archive for now.

This was something I noticed in the original file. I also found it strange, but I imagined that, as it doesn't have a referenced bone, the object's origin would be the position of the `Pole Target`. ![image.png](https://archive.blender.org/developer/F13336786/image.png) However testing, it seems that IK stops working in this situation. So the bug appears to be an undefined behavior. I'll try to edit the lib, but since it's a matter of Constraint misuse, in my opinion we can archive for now.

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

Indeed error message in constraint would be a nice addition. Will create a task for that.

But yes, think we can archive this task now.

Indeed error message in constraint would be a nice addition. Will create a task for that. But yes, think we can archive this task now.

In #100128#1400173, @mano-wii wrote:
the object's origin would be the position of the Pole Target.

yep, my bad.
I think, it this case, when tareget is armature and bone is undefined, it should not work as a pole.
And error message expected. I see red IK icon, so i suppose it will not work

> In #100128#1400173, @mano-wii wrote: > the object's origin would be the position of the `Pole Target`. yep, my bad. I think, it this case, when tareget is armature and bone is undefined, it should not work as a pole. And error message expected. I see red IK icon, so i suppose it will not work
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#100128
No description provided.