Skip to content

Commit

Permalink
Minor code style updates
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
  • Loading branch information
jstone-lucasfilm committed Jul 12, 2024
1 parent 1f6e221 commit 37a4353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/MaterialXGraphEditor/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3362,13 +3362,13 @@ void Graph::propertyEditor()
for (UiNodePtr node : _graphNodes)
{
std::vector<UiPinPtr> inputs = node->inputPins;
if (node->getInput() == nullptr)
if (!node->getInput())
{
for (size_t i = 0; i < inputs.size(); i++)
{
std::string inputName = inputs[i]->_name;
const std::string& inputName = inputs[i]->_name;
UiNodePtr inputNode = node->getConnectedNode(inputName);
if (inputNode != nullptr && inputNode->getName() == name && node->getNode())
if (inputNode && inputNode->getName() == name && node->getNode())
{
node->getNode()->getInput(inputName)->setAttribute("nodegraph", name);
}
Expand Down

0 comments on commit 37a4353

Please sign in to comment.