aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/paintnode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-28 02:15:54 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-28 02:15:54 +0200
commit32c8340e3163c97010c6ac5e60d01b52b4af063a (patch)
treea8bc6156b7513cb9afcab828f57c7e6c100b4132 /node/paintnode.cpp
parent6fcb78852cfda18f83877636278fbb903a0d9b9a (diff)
downloadOneRoll-32c8340e3163c97010c6ac5e60d01b52b4af063a.tar.gz
OneRoll-32c8340e3163c97010c6ac5e60d01b52b4af063a.zip
Painter dice now have a copy of the result
Diffstat (limited to 'node/paintnode.cpp')
-rw-r--r--node/paintnode.cpp3
1 files changed, 1 insertions, 2 deletions
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