Fix parsing input sockets for custom nodes

This commit is contained in:
luboslenco
2020-01-23 18:02:01 +01:00
parent d160d67a7c
commit b286935e34
2 changed files with 18 additions and 5 deletions
+2 -2
View File
@@ -915,7 +915,7 @@ class Material {
return to_vec3('$height');
}
else if (customNodes.get(node.type) != null) {
return customNodes.get(node.type)();
return customNodes.get(node.type)(node);
}
return "vec3(0.0, 0.0, 0.0)";
}
@@ -1296,7 +1296,7 @@ class Material {
}
}
else if (customNodes.get(node.type) != null) {
return customNodes.get(node.type)();
return customNodes.get(node.type)(node);
}
return "0.0";
}