Page MenuHome

Material change not updating in the link of an override
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Linux-5.4.0-7642-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: Quadro RTX 6000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 455.28

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-26 10:08, hash: rB8a2270efc52a
Worked: unknown
Short description of error
The material change of a linked in, overridden character is not updated as expected.

Screenshot animation file (character linked and overridden from character file):

Screenshot lighting file (linked from animation file):

I am not sure this is an actual bug, just a niche case that is not covered yet or even expected behaviour.
However, I was not able to reproduce this error with a simple test case. Rebuilding the file structure with a simple cube character showed no issue propagating material changes.
(For the sake of completeness, here the test case without the error:

)
Therefore it would be great if @Bastien Montagne (mont29) could take a look at our production repository for Sprite Fright, where the error occurred.

The file structure:
Character file containing the character collection
Animation file containing the character animation on an overridden link of the character from the character file
Lighting file containing a link of a mother collection of the overridden character from the animation file

Paths in the Sprites SVN:
Character File: /pro/lib/char/rex/rex.blend
Animation File: /pro/animation_test/rex/performance/rex_dialogue_fortune/rex_dialogue_fortune.anim.blend
Lighting File: /pro/animation_test/rex/performance/rex_dialogue_fortune/rex_dialogue_fortune.lighting.blend

Event Timeline

Am not exactly sure what is expected to happen here tbh...

  • Opening .anim.blend it complains that a lot of materials are missing from rex.blend
    • But it has its 'own' materials suffixed with .rig.rig???
  • Opening .lighting.blend those .rig.rig materials have disappeared, and instead you get the broken links to missing materials from rex.blend

Further more, those new materials in rex.blend (the .rig.rig ones) are linked to the object, not the object data, so they are affected by overrides - and overrides of materials is... flacky at best currently.

if you re-assign the materials to geometry in rex.blend, then load anim.blend and save it (not even needed to resync the overrides), then open lighting.blend everything is 'fixed'

Note that resyncing in anim.blend and then reloading lighting.blend also fixes the issue for me (without touching to rex,blend at all this time).

Bastien Montagne (mont29) changed the task status from Needs Triage to Confirmed.Nov 26 2020, 4:06 PM
Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Known Issue".
Bastien Montagne (mont29) changed the subtype of this task from "Known Issue" to "Bug".Nov 26 2020, 4:15 PM

There is still something wrong here, since anim.blend does not overrides those materials at all, it should still be propagated to lighting.blend... still investigating