Skip to content

Commit

Permalink
Remove extra newlines
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
  • Loading branch information
jstone-lucasfilm authored Dec 13, 2024
1 parent c01e96b commit 344e429
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/MaterialXGraphEditor/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4075,12 +4075,9 @@ void Graph::drawGraph(ImVec2 mousePos)
// any of the selected nodes is a nodegraph

bool isNodeGraph = _currUiNode->getNode() == nullptr;

isNodeGraph |= _isNodeGraph;

if (!isNodeGraph)
{

isNodeGraph |= _currUiNode->getNode()->getImplementation()->isA<mx::NodeGraph>();

for (ed::NodeId selected : selectedNodes)
Expand All @@ -4104,27 +4101,22 @@ void Graph::drawGraph(ImVec2 mousePos)
}

// delete nodes we just copied

if (!_copiedNodes.empty() && !isNodeGraph)

{

for (std::map<UiNodePtr, UiNodePtr>::iterator iter = _copiedNodes.begin(); iter != _copiedNodes.end(); iter++)
{
UiNodePtr node = iter->first;
deleteNode(node);
}

// create subgraph

UiNodePtr nodegraphnodeptr = addNode("nodegraph", "", "");

_currUiNode = nodegraphnodeptr;

ed::SetNodePosition(_currUiNode->getId(), mousePos);

// dive inside

if (_currUiNode->getNodeGraph() != nullptr)
{

Expand All @@ -4146,7 +4138,6 @@ void Graph::drawGraph(ImVec2 mousePos)
}

// paste

for (std::map<UiNodePtr, UiNodePtr>::iterator iter = _copiedNodes.begin(); iter != _copiedNodes.end(); iter++)
{
copyUiNode(iter->first);
Expand Down

0 comments on commit 344e429

Please sign in to comment.