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

Desaturation fix #374

Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion MCprep_addon/materials/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,11 @@ def set_saturation_material(mat):
return # requires regenerating material to add back
if len(desat_color) == 3:
desat_color += [1] # add in alpha
sat_node.inputs[2].default_value = desat_color

if util.min_bv((3, 4)):
sat_node.inputs[6].default_value = desat_color
StandingPadAnimations marked this conversation as resolved.
Show resolved Hide resolved
else:
sat_node.inputs[2].default_value = desat_color
sat_node.mute = not bool(saturate)
sat_node.hide = not bool(saturate)

Expand Down