Skip to content

Commit

Permalink
Bug fix: when copy pasting pyplugs, do not recurse
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKepzie committed Jul 19, 2016
1 parent c4f5c1a commit e6652d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gui/NodeGraphPrivate10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ NodeGraphPrivate::pasteNode(const boost::shared_ptr<NodeSerialization> & interna
(*oldNewScriptNameMapping)[internalSerialization->getNodeScriptName()] = n->getScriptName();
}

if ( !nodes.empty() ) {
// For PyPlugs, don't recurse otherwise we would recreate all nodes on top of the ones created by the python script
if ( !nodes.empty() && n->getPluginPythonModule().empty()) {
std::string parentName;
boost::shared_ptr<NodeCollection> collection;
if (isGrp) {
Expand Down

0 comments on commit e6652d8

Please sign in to comment.