File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1324,10 +1324,12 @@ void Document::upgradeVersion()
13241324
13251325 node->removeInput (" space" );
13261326
1327- // If the normal or tangent inputs are set, the bitangent input should be normalize(cross(N, T))
1327+ // If the normal or tangent inputs are set and the bitangent input is not,
1328+ // the bitangent should be set to normalize(cross(N, T))
13281329 InputPtr normalInput = node->getInput (" normal" );
13291330 InputPtr tangentInput = node->getInput (" tangent" );
1330- if (normalInput || tangentInput)
1331+ InputPtr bitangentInput = node->getInput (" bitangent" );
1332+ if ((normalInput || tangentInput) && !bitangentInput)
13311333 {
13321334 GraphElementPtr graph = node->getAncestorOfType <GraphElement>();
13331335 NodePtr crossNode = graph->addNode (" crossproduct" , graph->createValidChildName (" normalmap_cross" ), " vector3" );
You can’t perform that action at this time.
0 commit comments