Skip to content

Commit

Permalink
Declare variable at lower scope
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Stone <[email protected]>
  • Loading branch information
jstone-lucasfilm authored Jul 12, 2024
1 parent 37a4353 commit 662d28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MaterialXGraphEditor/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3361,9 +3361,9 @@ void Graph::propertyEditor()

for (UiNodePtr node : _graphNodes)
{
std::vector<UiPinPtr> inputs = node->inputPins;
if (!node->getInput())
{
std::vector<UiPinPtr> inputs = node->inputPins;
for (size_t i = 0; i < inputs.size(); i++)
{
const std::string& inputName = inputs[i]->_name;
Expand Down

0 comments on commit 662d28f

Please sign in to comment.