Bone constraint missing after relocating/remapping missing library #90924

Closed
opened 2021-08-25 17:45:15 +02:00 by Dalai Felinto · 16 comments

Blender Version
Broken: version: 2.79 and 3.0.0 Alpha, branch: master, commit date: 2021-08-25 08:10, hash: 452cc01932
Worked: - (never ?)

Short description of error
The child of bone constrain loses the "inverse" matrix the if you

How to re-create the sample files from scratch

  1. New file, create a simple torus parented to an armature, save in torus.blend
  2. New file, create a simple cube parented to an armature, animate the cube.
  3. Link in + instance the torus + its armature, position on the top of the cube.
  4. Add a child of constraint to the torus bone and set the cube bone as the parent.
  5. Click on "Set Inverse".
  6. Save as main.blend.

Exact steps for others to reproduce the error

main.blend
torus.blend

  1. Rename torus.blend to child.blend
  2. Open main.blend and remap the missing library. (in 3.0 you can right click in the broken library and "Relocate", in 2.79 you need to rename the path and save and re-open the file).
  3. Boom, the local constraint is missing
**Blender Version** Broken: version: 2.79 and 3.0.0 Alpha, branch: master, commit date: 2021-08-25 08:10, hash: `452cc01932` Worked: - (never ?) **Short description of error** The child of bone constrain loses the "inverse" matrix the if you **How to re-create the sample files from scratch** 1. New file, create a simple torus parented to an armature, save in torus.blend 2. New file, create a simple cube parented to an armature, animate the cube. 3. Link in + instance the torus + its armature, position on the top of the cube. 4. Add a child of constraint to the torus bone and set the cube bone as the parent. 5. Click on "Set Inverse". 6. Save as main.blend. **Exact steps for others to reproduce the error** [main.blend](https://archive.blender.org/developer/F10325237/main.blend) [torus.blend](https://archive.blender.org/developer/F10325238/torus.blend) 7. Rename torus.blend to child.blend 8. Open main.blend and remap the missing library. (in 3.0 you can right click in the broken library and "Relocate", in 2.79 you need to rename the path and save and re-open the file). 9. Boom, the local constraint is missing
Author
Owner

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Author
Owner

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

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

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

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

It seems that the bone constraint as a whole is removed when the linking is not found. So maybe the issue is not particular of the child of. Needs further investigation.

It seems that the bone constraint as a whole is removed when the linking is not found. So maybe the issue is not particular of the child of. Needs further investigation.
Author
Owner

Alright, confirmed that even in 2.79 all the bone constraints are removed from the proxy with the steps above.

Alright, confirmed that even in 2.79 all the bone constraints are removed from the proxy with the steps above.

Added subscriber: @LucianoMunoz

Added subscriber: @LucianoMunoz

Yeah i remmeber hitting this bug back then, its pretty destructive.

Yeah i remmeber hitting this bug back then, its pretty destructive.
Author
Owner

Talking to some artists, the main issue of Child Of is that of all constraints, this is the one that is harder to copy over, since there is no way to know which values are stored.

Regardless of a real fix (making the bone constraints not going away), I think we could have the stored inverse matrix shown in the UI somehow (in the worst case it can even be a Info icon that you mouse over and see the values - though that is not highly copy/pasteable).

Talking to some artists, the main issue of Child Of is that of all constraints, this is the one that is harder to copy over, since there is no way to know which values are stored. Regardless of a real fix (making the bone constraints not going away), I think we could have the stored inverse matrix shown in the UI somehow (in the worst case it can even be a Info icon that you mouse over and see the values - though that is not highly copy/pasteable).

More so when its more than one constrain and often you'll have many

More so when its more than one constrain and often you'll have many
Author
Owner

Added subscriber: @mont29

Added subscriber: @mont29
Author
Owner

I talked to @mont29 and the problem of disappearing bone constraints also happens with library overrides.

I talked to @mont29 and the problem of disappearing bone constraints also happens with library overrides.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Searched a bit, but not finding a real duplicate report.
Will confirm now.

Searched a bit, but not finding a real duplicate report. Will confirm now.
Philipp Oeser changed title from Child of bone constrain "Inverse" matrix lost when linking problems to Bone constraint missing after relocating/remapping missing library 2021-08-31 10:29:47 +02:00

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

Would have been nice to get updated files here... those are antique (not even collections in them), AND using proxies, which are in low-maintenance mode now...

On a side note, please name properly files in bug reports, simple names like main.blemd will collide very easily with other files from other reports, making it harder and more confusing to deal with.

relocate_library_linking_overrides_main_working.blend

relocate_library_linking_overrides_main.blend

relocate_library_linking_overrides_lib_b.blend


Now, there is no bug here, posebones from the object side are synced with the actual bone from the obdata Armature ID. Since the placeholder one generated for that Armature obdata is empty when the library gets missing, there is no bones, so posebone data (including their constraints) are lost.

With overrides, in case you do override also the Armature obdata itself, things survive since we currently write the full armature data of an override (unlike what we do with meshes e.g.). See relocate_library_linking_overrides_main_working.blend file above.

So no bug here, this is expected behavior thanks to how armatures are dealt with in Blender currently.

Would have been nice to get updated files here... those are antique (not even collections in them), AND using proxies, which are in low-maintenance mode now... On a side note, please name properly files in bug reports, simple names like `main.blemd` will collide very easily with other files from other reports, making it harder and more confusing to deal with. [relocate_library_linking_overrides_main_working.blend](https://archive.blender.org/developer/F10374411/relocate_library_linking_overrides_main_working.blend) [relocate_library_linking_overrides_main.blend](https://archive.blender.org/developer/F10374412/relocate_library_linking_overrides_main.blend) [relocate_library_linking_overrides_lib_b.blend](https://archive.blender.org/developer/F10374413/relocate_library_linking_overrides_lib_b.blend) --------------------------- Now, there is no bug here, posebones from the object side are synced with the actual bone from the obdata Armature ID. Since the placeholder one generated for that Armature obdata is empty when the library gets missing, there is no bones, so posebone data (including their constraints) are lost. With overrides, in case you do override also the Armature obdata itself, things survive since we currently write the full armature data of an override (unlike what we do with meshes e.g.). See `relocate_library_linking_overrides_main_working.blend` file above. So no bug here, this is expected behavior thanks to how armatures are dealt with in Blender currently.
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#90924
No description provided.