-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Material mix error (BlendLuxCore Wheels v2.9a3) #961
Comments
I can't reproduce the error under Linux or Windows using Mix material alone. Could you provide a test scene? It might be connected to further setup aspects like volumes. |
I have now made a bit more detailed test with this issue. Steps to reproduce
|
Okay I finally managed to reproduce it. There were two key details here:
Have to investigate further if:
|
Update: First, little clarification, the error actually appears even if there was no change to the linked material. Simply calling a refresh on the linked file in the second scene is enough. Regarding the error: This seems to be triggered by this line: BlendLuxCore/export/caches/__init__.py Line 64 in 67b0379
In the whole scene/material chain, this is the second time the Properties.Set()method is called, the first being here: BlendLuxCore/export/caches/object_cache.py Line 474 in 67b0379
Looking at the content of (scene_)props, the first time there are no new names pushed. The second time, additional keys appear which seem to be the material properties of the materials going into the mix shader, but not the mix shader itself. These new keys then trigger the error. This suggests to me that the material key generation on the second time produces a bad result. Simply commenting out the erroneous second instance seems to fix the error, the material is updated correctly after a change in the first scene. However care should be taken what other side effect this will have. I assume the code is not there for no reason... |
Steps to reproduce:
Make a mix material and mix 2 materials
Screenshots or rendered images:
Error message from Blender console:
Reference to an undefined NamedObject name: 133918571256072Material
OS: Ubuntu 24.04 LTS
Blender version: 4.2.5 LTS
LuxCore version:2.9.0
The text was updated successfully, but these errors were encountered: