Describe the bug
I recently found out (when making progress on #73) that when muting Add Shader/ Mix Shader nodes, the first shader input doesn't get muted and gets through.
The way BakeMaster 'turns off' world lighting is by muting the first node after World Output, so for the setup below the world shader material is not black as it should be:
To Reproduce
Steps to reproduce the behavior:
Set up a World Shader material similar to the one in the screenshot above.
Bake two bakes: one with Scene lights unchecked and checked (this setting is in Decal settings)
See that the one with unchecked Scene lights has world shader contribution when I shouldn't.
Expected behavior
[x] First, move Scene Lights property from Decal object settings to Bake Output settings. This way a user would have control over Scene Lights' contribution not only for Decal bakes.
[x] ~Scene Lights is not reset when Decal object is disabled, so it still affects the bake for regular objects.~ not relevant after moving Scene Lights to bake output settings.
[x] Second, fix world shader node muting to properly mute nodes or remake it to remove and restore the first link after the world output node instead.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS [e.g. Windows]
OS Version [e.g. Windows 10]
Blender Version [e.g. Blender 3.2.2]
BakeMaster Version [e.g. 1.0]
Additional context
Add any other context about the problem here.
This bug report is:
67
75
73
Describe the bug I recently found out (when making progress on #73) that when muting Add Shader/ Mix Shader nodes, the first shader input doesn't get muted and gets through.
The way BakeMaster 'turns off' world lighting is by muting the first node after World Output, so for the setup below the world shader material is not black as it should be:
To Reproduce Steps to reproduce the behavior:
Expected behavior
Scene Lights
property from Decal object settings to Bake Output settings. This way a user would have control over Scene Lights' contribution not only for Decal bakes.Scene Lights
is not reset when Decal object is disabled, so it still affects the bake for regular objects.~ not relevant after movingScene Lights
to bake output settings.Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.