From 1f1ce3016fe8589d5b182e244e00333a1f35f1d0 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 3 Sep 2020 01:50:32 +0200 Subject: Fix paint node. --- node/paintnode.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'node/paintnode.cpp') diff --git a/node/paintnode.cpp b/node/paintnode.cpp index c0c7079..22c020e 100644 --- a/node/paintnode.cpp +++ b/node/paintnode.cpp @@ -83,16 +83,14 @@ void PainterNode::run(ExecutionNode* previous) ++pastDice; } } + m_diceResult->setPrevious(previousResult); + m_result= m_diceResult; } if(nullptr != m_nextNode) { m_nextNode->run(this); } } -Result* PainterNode::getResult() -{ - return m_diceResult; -} QString PainterNode::toString(bool wl) const { -- cgit v1.2.3-70-g09d2