From 32c8340e3163c97010c6ac5e60d01b52b4af063a Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 28 Jul 2019 02:15:54 +0200 Subject: Painter dice now have a copy of the result --- node/paintnode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'node/paintnode.cpp') diff --git a/node/paintnode.cpp b/node/paintnode.cpp index fe5a324..e0a7a74 100644 --- a/node/paintnode.cpp +++ b/node/paintnode.cpp @@ -47,7 +47,6 @@ void ColorItem::setColor(const QString& color) PainterNode::PainterNode() : ExecutionNode() { - m_result= nullptr; m_nextNode= nullptr; } @@ -90,7 +89,7 @@ void PainterNode::run(ExecutionNode* previous) } Result* PainterNode::getResult() { - return (nullptr != m_previousNode) ? m_previousNode->getResult() : nullptr; + return m_diceResult; } QString PainterNode::toString(bool wl) const -- cgit v1.2.3-70-g09d2