forked from blender/blender
Export to MatX various Texture nodes #5
@ -169,7 +169,7 @@ NodeItem NodeItem::arithmetic(const std::string &mx_category,
|
||||
return empty();
|
||||
}
|
||||
|
||||
std::string t = value ? value->getTypeString() : node->getType();
|
||||
std::string t = type();
|
||||
NodeItem res(graph_);
|
||||
if (value) {
|
||||
if (t == "float") {
|
||||
@ -403,7 +403,7 @@ NodeItem NodeParser::get_input_link(const std::string &name)
|
||||
|
||||
/* Getting required NodeParser object */
|
||||
std::unique_ptr<NodeParser> parser;
|
||||
switch (in_node->type) {
|
||||
switch (in_node->typeinfo->type) {
|
||||
case SH_NODE_BSDF_PRINCIPLED:
|
||||
parser = std::make_unique<BSDFPrincipledNodeParser>(graph, depsgraph, material, in_node);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user