forked from blender/blender
MaterialX: Implement export of Input nodes #20
@ -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
|
|||||||
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")));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user
maybe std::string name = socket_out_->name ?