KisNode::KisNode(const KisNode & rhs) : KisBaseNode(rhs) , m_d(new Private()) { m_d->parent = 0; m_d->graphListener = rhs.m_d->graphListener; foreach(const KisNodeSP & node, rhs.m_d->nodes) { KisNodeSP children = node.data()->clone(); children->createNodeProgressProxy(); m_d->nodes.append(children); children->setParent(this); children->setGraphListener(m_d->graphListener); } }