Export to MatX various Texture nodes #5

Merged
Bogdan Nagirniak merged 17 commits from matx-add-tex-nodes into matx-export-material 2023-08-31 19:49:26 +02:00
Showing only changes of commit 72a3fd0d68 - Show all commits

View File

@ -169,7 +169,7 @@ NodeItem NodeItem::arithmetic(const std::string &mx_category,
return empty(); return empty();
} }
std::string t = value ? value->getTypeString() : node->getType(); std::string t = type();
NodeItem res(graph_); NodeItem res(graph_);
if (value) { if (value) {
if (t == "float") { if (t == "float") {
@ -403,7 +403,7 @@ NodeItem NodeParser::get_input_link(const std::string &name)
/* Getting required NodeParser object */ /* Getting required NodeParser object */
std::unique_ptr<NodeParser> parser; std::unique_ptr<NodeParser> parser;
switch (in_node->type) { switch (in_node->typeinfo->type) {
case SH_NODE_BSDF_PRINCIPLED: case SH_NODE_BSDF_PRINCIPLED:
parser = std::make_unique<BSDFPrincipledNodeParser>(graph, depsgraph, material, in_node); parser = std::make_unique<BSDFPrincipledNodeParser>(graph, depsgraph, material, in_node);
break; break;