lunadigital / btoa

A community-developed Blender add-on for the Arnold renderer.
GNU General Public License v3.0
126 stars 7 forks source link

Mix Shader is Broken Now #214

Closed AlexeyAdamitsky closed 2 years ago

AlexeyAdamitsky commented 2 years ago

Trying to use Mix Shader node with no nodes connected to Shader inputs either breaks IPR with the error below or crashes Blender entirely. image

This setup breaks IPR and crashes Blender. image

When all the nodes are connected prior to IPR activation it works ok. image

Blender 3.2.2 Arnold SDK 7.1.2.2 BtoA Dev Build https://github.com/lunadigital/btoa/commit/9757d957ea8ec4406908a14cd7b0a2637fbd36a7

osiriswrecks commented 2 years ago

My guess is it's always done this, we just haven't noticed until now. There should be some kind of sanity check we can do to avoid it trying to export an unplugged socket.

AlexeyAdamitsky commented 2 years ago

It works really well now. No errors when shader inputs are empty. Thanks!