| 665 | } |
| 666 | |
| 667 | NodePtr |
| 668 | MultiInstancePanel::addInstanceInternal(bool useUndoRedoStack) |
| 669 | { |
| 670 | NodePtr mainInstance = _imp->getMainInstance(); |
| 671 | CreateNodeArgs args(mainInstance->getPluginID() ,mainInstance->getGroup() ); |
| 672 | args.setProperty<bool>(kCreateNodeArgsPropAddUndoRedoCommand, false); |
| 673 | args.setProperty<bool>(kCreateNodeArgsPropAutoConnect, false); |
| 674 | args.setProperty<std::string>(kCreateNodeArgsPropMultiInstanceParentName, mainInstance->getScriptName()); |
| 675 | NodePtr newInstance = _imp->getMainInstance()->getApp()->createNode(args); |
| 676 | |
| 677 | if (useUndoRedoStack) { |
| 678 | _imp->pushUndoCommand( new AddNodeCommand(this, newInstance) ); |
| 679 | } |
| 680 | |
| 681 | return newInstance; |
| 682 | } |
| 683 | |
| 684 | void |
| 685 | MultiInstancePanel::onChildCreated(const NodePtr& node) |
nothing calls this directly
no test coverage detected