forked from blender/blender
MaterialX: add support for Vector nodes #27
@ -625,7 +625,7 @@ NodeItem NodeItem::rotate3d(NodeItem rotation, bool invert)
|
||||
int j = invert ? 2 - i : i;
|
||||
MaterialX::Vector3 axis_vector = MaterialX::Vector3();
|
||||
axis_vector[j] = 1.0f;
|
||||
return create_node(
|
||||
res = create_node(
|
||||
"rotate3d",
|
||||
NodeItem::Type::Vector3,
|
||||
{{"in", res}, {"amount", rotation.extract(j)}, {"axis", val(axis_vector)}});
|
||||
|
Loading…
Reference in New Issue
Block a user