summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/animationnodes/animationphysicsnode.cxx
diff options
context:
space:
mode:
authorSarper Akdemir <q.sarperakdemir@gmail.com>2020-08-06 10:32:55 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-08-21 16:31:52 +0200
commit76f3218b32acbc1b67bd291ac84067c83f6e3c2f (patch)
tree6dce8dbcb0615a180ac2eeaea5760842c0783288 /slideshow/source/engine/animationnodes/animationphysicsnode.cxx
parentf3272cd389d66e249d189b1810dbf685b14a00ba (diff)
make physics animation effects always processed last
Makes it possible to add activities that will be processed last in the queue. Makes physics animation effects queued this way. And fixes the bug that makes physics animation effects appear out of sync for a frame with the shapes that other in parallel animation effects control. Change-Id: I92d436aced6ef3ee2c8b0bf0167c1f7e642ba3b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100713 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Jenkins
Diffstat (limited to 'slideshow/source/engine/animationnodes/animationphysicsnode.cxx')
-rw-r--r--slideshow/source/engine/animationnodes/animationphysicsnode.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/slideshow/source/engine/animationnodes/animationphysicsnode.cxx b/slideshow/source/engine/animationnodes/animationphysicsnode.cxx
index 28e247c30d6c..8f531ea24ed7 100644
--- a/slideshow/source/engine/animationnodes/animationphysicsnode.cxx
+++ b/slideshow/source/engine/animationnodes/animationphysicsnode.cxx
@@ -43,6 +43,11 @@ AnimationActivitySharedPtr AnimationPhysicsNode::createActivity() const
true);
}
+bool AnimationPhysicsNode::enqueueActivity() const
+{
+ return getContext().mrActivitiesQueue.addTailActivity(mpActivity);
+}
+
} // namespace slideshow::internal
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */