Skip to content

Commit

Permalink
Fix crash when reading blended spec shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Garcia committed Dec 20, 2023
1 parent 1e62d12 commit b8dadb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_scene_halo/global_functions/shader_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ def generate_shader_environment(mat, shader, permutation_index, report):
connect_inputs(mat.node_tree, blend_detail_mix_node, 2, blend_biased_multiply_node, "Detail")
connect_inputs(mat.node_tree, blend_biased_multiply_node, "Color", bdsf_principled, "Base Color")

elif shader.shader_body.blended_base_specular == EnvironmentTypeEnum.blended_base_specular.value:
elif shader.shader_body.environment_type == EnvironmentTypeEnum.blended_base_specular.value:
blend_mix_node = mat.node_tree.nodes.new("ShaderNodeMix")
blend_mix_node.data_type = 'RGBA'
blend_mix_node.blend_type = "ADD"
Expand Down

0 comments on commit b8dadb9

Please sign in to comment.