Skip to content

Commit

Permalink
Merge branch 'master' into RB-2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKepzie committed Jul 4, 2016
2 parents 35ded73 + e33b748 commit a35480a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Gui/GuiAppInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,8 @@ void
GuiAppInstance::onGroupCreationFinished(const NodePtr& node,
const boost::shared_ptr<NodeSerialization>& serialization, bool autoConnect)
{
if (autoConnect && !serialization) {
boost::shared_ptr<NodeGuiI> node_gui_i = node->getNodeGui();
if (autoConnect && !serialization && node_gui_i) {
NodeGraph* graph = 0;
boost::shared_ptr<NodeCollection> collection = node->getGroup();
assert(collection);
Expand All @@ -1100,12 +1101,10 @@ GuiAppInstance::onGroupCreationFinished(const NodePtr& node,
selectedNode.reset();
}
}
boost::shared_ptr<NodeGuiI> node_gui_i = node->getNodeGui();
assert(node_gui_i);
NodeGuiPtr nodeGui = boost::dynamic_pointer_cast<NodeGui>(node_gui_i);
graph->moveNodesForIdealPosition(nodeGui, selectedNode, true);
}

AppInstance::onGroupCreationFinished(node, serialization, autoConnect);

/*std::list<ViewerInstance* > viewers;
Expand Down

0 comments on commit a35480a

Please sign in to comment.