MaterialX: Implement export of Input nodes #20

Merged
Bogdan Nagirniak merged 26 commits from Vasyl-Pidhirskyi/blender:BLEN-530 into matx-export-material 2023-09-15 19:55:37 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit b5343a4d79 - Show all commits

View File

@ -65,11 +65,11 @@ NODE_SHADER_MATERIALX_BEGIN
NodeItem res = empty(); NodeItem res = empty();
std::string name = socket_out_->name; std::string name = socket_out_->name;
BogdanNagirniak marked this conversation as resolved
Review

maybe std::string name = socket_out_->name ?

maybe std::string name = socket_out_->name ?
if (name == "Position"){ if (name == "Position") {
res = create_node("position", NodeItem::Type::Vector3); res = create_node("position", NodeItem::Type::Vector3);
res.set_input("space", val(std::string("world"))); res.set_input("space", val(std::string("world")));
} }
else if (name =="Normal"){ else if (name == "Normal") {
res = create_node("normal", NodeItem::Type::Vector3); res = create_node("normal", NodeItem::Type::Vector3);
res.set_input("space", val(std::string("world"))); res.set_input("space", val(std::string("world")));
} }