diff options
| author | 2016-11-28 00:36:15 +0100 | |
|---|---|---|
| committer | 2016-11-28 00:36:15 +0100 | |
| commit | 13e297604b00615d47352538e3c82ea1ac700d4c (patch) | |
| tree | 567efe03594d261831897f03a7821c4c6eeac59b /booleancondition.cpp | |
| parent | cdd1716bd1aa8d9bbd0137aa98ff24867b6b3a0e (diff) | |
| download | OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.tar.gz OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.zip | |
-Add API for copying a branch of execution node.
-Allow to use if node several times.
Diffstat (limited to 'booleancondition.cpp')
| -rw-r--r-- | booleancondition.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/booleancondition.cpp b/booleancondition.cpp index 585620a..7be9836 100644 --- a/booleancondition.cpp +++ b/booleancondition.cpp @@ -128,3 +128,13 @@ quint64 BooleanCondition::getValidRangeSize(quint64 faces) const return faces-1; } } +Validator* BooleanCondition::getCopy() const +{ + BooleanCondition* val = new BooleanCondition(); + val->setOperator(m_operator); + val->setValue(m_value); + + + return val; + +} |