Fix: Hydra "Object" texture coordinates incorrectly set to "World"

Found by inspection but looks like a simple oversight.

Example images in PR.
Pull Request: https://projects.blender.org/blender/blender/pulls/128223
This commit is contained in:
Jesse Yurkovich
2024-09-27 19:20:25 +02:00
committed by Jesse Yurkovich
parent a9fa3657a6
commit 04c5044e61

View File

@@ -85,7 +85,8 @@ NODE_SHADER_MATERIALX_BEGIN
res = create_node("normal", NodeItem::Type::Vector3, {{"space", val(std::string("world"))}});
}
else if (name == "Object") {
res = create_node("position", NodeItem::Type::Vector3, {{"space", val(std::string("world"))}});
res = create_node(
"position", NodeItem::Type::Vector3, {{"space", val(std::string("object"))}});
}
else {
res = get_output_default(name, NodeItem::Type::Any);