diff options
Diffstat (limited to 'examples/animation/sub-attaq/custompropertyanimation.cpp')
-rw-r--r-- | examples/animation/sub-attaq/custompropertyanimation.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/animation/sub-attaq/custompropertyanimation.cpp b/examples/animation/sub-attaq/custompropertyanimation.cpp index 45997af..1637ed2 100644 --- a/examples/animation/sub-attaq/custompropertyanimation.cpp +++ b/examples/animation/sub-attaq/custompropertyanimation.cpp @@ -55,9 +55,8 @@ void CustomPropertyAnimationPrivate::initDefaultStartValue() QVariant def = animProp->read(); if (def.isValid()) convertValues(def.userType()); - if (animProp && !defaultStartValue.isValid() - && ((currentTime == 0 && (currentIteration || currentIteration == 0)) - || (currentTime == duration && currentIteration == (iterationCount - 1)))) { + if (animProp && !defaultStartValue.isValid() && currentTime == 0 + || (currentTime == duration && currentLoop == (loopCount - 1))) { setDefaultStartValue(def); } } |