Skip to content
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

Duplicating custom OSL shaders makes rendering disfunctional #520

Open
dralois opened this issue Jun 25, 2020 · 1 comment
Open

Duplicating custom OSL shaders makes rendering disfunctional #520

dralois opened this issue Jun 25, 2020 · 1 comment

Comments

@dralois
Copy link

dralois commented Jun 25, 2020

Duplicating a custom OSL shader leads to the appleseed / OSL (?) error: error | error loading memory compiled shader 'NodeClass', 'ShaderName' while rendering.
If the same shader is compiled twice instead, it leads to the same error while rendering, as well as a blenderseed internal error: [appleseed] ERROR: Failed to unregister class <class 'blenderseed.utils.osl_utils.'NodeClass''>: unregister_class(...):, missing bl_rna attribute from 'RNAMetaPropGroup' instance (may not be registered).
This can be reproduced with any custom shader in Blender 2.82a, with the latest blenderseed build.
The same issue does not happen with built-in shader nodes such as asPlastic, asStandardSurface, etc.

@dralois
Copy link
Author

dralois commented Jun 25, 2020

Further research into the issue: The problem most likely stems from OSL not allowing the same shader to be added twice, which does happen if a script node is duplicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant