aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-09-03 01:50:32 +0200
committerRenaud G <renaud@rolisteam.org>2020-09-03 01:51:26 +0200
commit1f1ce3016fe8589d5b182e244e00333a1f35f1d0 (patch)
tree35185c68c118f43647e4554b50a97f6e283ccc0d /node
parent8209ac895fac8f993c13187195287f4021457da5 (diff)
downloadOneRoll-1f1ce3016fe8589d5b182e244e00333a1f35f1d0.tar.gz
OneRoll-1f1ce3016fe8589d5b182e244e00333a1f35f1d0.zip
Fix paint node.
Diffstat (limited to 'node')
-rw-r--r--node/paintnode.cpp6
-rw-r--r--node/paintnode.h1
2 files changed, 2 insertions, 5 deletions
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
{
diff --git a/node/paintnode.h b/node/paintnode.h
index 2283f83..06d849e 100644
--- a/node/paintnode.h
+++ b/node/paintnode.h
@@ -47,7 +47,6 @@ public:
PainterNode();
virtual ~PainterNode();
virtual void run(ExecutionNode* previous= nullptr);
- Result* getResult();
virtual QString toString(bool) const;
virtual qint64 getPriority() const;
void insertColorItem(QString color, int value);