Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
/screenshots
/startup
/www
/.idea
7 changes: 6 additions & 1 deletion addons/bl_datasmith/export_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ def exp_uvmap(socket, exp_list):
m = material_owner.data
if type(m) is bpy.types.Mesh:
for idx, uv in enumerate(m.uv_layers):
if uv.name == id:
if uv.name == socket.node.uv_map:
uv_index = idx
return exp_texcoord(exp_list, uv_index)

Expand Down Expand Up @@ -2454,6 +2454,8 @@ def exp_math(socket, exp_list):
"MULTIPLY",
"DIVIDE",
"ABSOLUTE",
"POWER",
"SIGN",
"MINIMUM",
"MAXIMUM",
"FLOOR",
Expand All @@ -2473,6 +2475,9 @@ def exp_math(socket, exp_list):
"FRACTION": (1, "Frac"),
}
VECT_MATH_FUNCTIONS = { # tuples are (input_count, path)
"MULTIPLY_ADD": (3, "/DatasmithBlenderContent/MaterialFunctions/VectMultiplyAdd"),
"REFRACT": (3, "/DatasmithBlenderContent/MaterialFunctions/VectRefract"),
"FACEFORWARD": (3, "/DatasmithBlenderContent/MaterialFunctions/VectFaceforward"),
"WRAP": (3, "/DatasmithBlenderContent/MaterialFunctions/VectWrap"),
"SNAP": (2, "/DatasmithBlenderContent/MaterialFunctions/VectSnap"),
"PROJECT": (2, "/DatasmithBlenderContent/MaterialFunctions/VectProject"),
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.