MaterialX: code improvements shader modes. #35

Merged
Showing only changes of commit fbc05db737 - Show all commits

View File

@ -327,6 +327,7 @@ NodeItem NodeItem::dotproduct(const NodeItem &other) const
NodeItem item1 = to_vector(); NodeItem item1 = to_vector();
NodeItem item2 = other.to_vector(); NodeItem item2 = other.to_vector();
cast_types(item1, item2);
return create_node("dotproduct", Type::Float, {{"in1", item1}, {"in2", item2}}); return create_node("dotproduct", Type::Float, {{"in1", item1}, {"in2", item2}});
} }