Page MenuHome

materials not updated correctly after collada import
Closed, ResolvedPublic

Description

System Information
Operating system: windows 10
Graphics card: geforce gtx 1060

Blender Version
Broken: 2.92 release

Short description of error
all materials render black in cycles after collada import

Exact steps for others to reproduce the error

I can't join a scene reproducing the problem because if a save a scene with the problem then re open it, the problem disappear.

steps to reproduce are simple :
take the default .blend scene with the cube :

  • exported to a collada file (selection only : just the cube)
  • deleted from the default scene
  • imported back from collada file

in the "shader editor" view, the cube's material is correctly displayed

but in the "material properties" tab the cube's material is displayed with Surface : "None" instead of expected surface : "Principled BSDF"

Cycles rendering is affected (cube render black) while EEVEE rendering display the correct material

interacting with the material in the "Shader editor" UI can bring the material back to a fully initialised state :

just start to click on an empty link, start to draw a line then release mouse...  is enough to update the material.
another way to repair is just to save and re open the scene.

as collada importer seems to setup material properties correctly (as seen in shader editor view)
I think it can be more a blender refresh/update bug than a addon (collada) bug. (but I'm not sure of that..)

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Mar 23 2021, 4:09 PM

Can confirm.

I think this problem still exists for links created after the ntreeUpdateTree call, eg. links to texture nodes. If you import a .dae with a texture you get the same symptoms:

Should the ntreeUpdateTree call be moved to the end, after all the set_diffuse/etc calls?

Philipp Oeser (lichtwerk) reopened this task as Confirmed.Tue, May 4, 3:21 PM