Skip to content

Commit

Permalink
NodeType, nodeMeshName + coef max limit increased to 10000
Browse files Browse the repository at this point in the history
  • Loading branch information
mredele committed Jan 22, 2020
1 parent 5e24744 commit 476a1f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions io_scene_data3d/data3d_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ class D3D:
wf_color = 'wireframeColor'
wf_opacity = 'wireframeOpacity'
bsdf_type = 'bsdfType'
node_type = 'nodeType'
node_mesh_name = 'nodeMeshName'


# Baking related material keys
Expand Down
4 changes: 2 additions & 2 deletions io_scene_data3d/material_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ def create_cycles_material(al_mat, bl_mat, working_dir, place_holder_images):
node_group.inputs[d3d_to_node[D3D.col_spec]].default_value = al_mat[D3D.col_spec] + (1, )

if D3D.coef_spec in al_mat and d3d_to_node[D3D.coef_spec] in node_group.inputs:
node_group.inputs[d3d_to_node[D3D.coef_spec]].default_value = min(max(0.0, al_mat[D3D.coef_spec]), 100.0)
node_group.inputs[d3d_to_node[D3D.coef_spec]].default_value = min(max(0.0, al_mat[D3D.coef_spec]), 10000.0)

if D3D.coef_emit in al_mat and d3d_to_node[D3D.coef_emit] in node_group.inputs:
node_group.inputs[d3d_to_node[D3D.coef_emit]].default_value = min(max(0.0, al_mat[D3D.coef_emit]), 100.0)
node_group.inputs[d3d_to_node[D3D.coef_emit]].default_value = min(max(0.0, al_mat[D3D.coef_emit]), 10000.0)

if D3D.opacity in al_mat and d3d_to_node[D3D.opacity] in node_group.inputs:
node_group.inputs[d3d_to_node[D3D.opacity]].default_value = al_mat[D3D.opacity]
Expand Down

0 comments on commit 476a1f6

Please sign in to comment.