summaryrefslogtreecommitdiff
path: root/animations/source
diff options
context:
space:
mode:
authorSarper Akdemir <q.sarperakdemir@gmail.com>2020-08-30 02:18:48 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-08-31 12:27:39 +0200
commitf525b8898dcefe9e43e63e475c18d754ef000007 (patch)
tree076cc4a39a750b0ea62fa41979d272e921cd1fa3 /animations/source
parent8e36582d9289c3774f2733b021fafc93370cffae (diff)
add missing initializers about physics animations to AnimationNode class
fixes the case when a physics animation preset is imported it doesn't have any information about start velocity, density or bounciness paramaters. Change-Id: Ic817afb211597ad553ccc3a43fe24bfbebadbc43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101656 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'animations/source')
-rw-r--r--animations/source/animcore/animcore.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx
index 107353cf327a..b87482a0c4cd 100644
--- a/animations/source/animcore/animcore.cxx
+++ b/animations/source/animcore/animcore.cxx
@@ -488,6 +488,12 @@ AnimationNode::AnimationNode( const AnimationNode& rNode )
maPath( rNode.maPath ),
maOrigin( rNode.maOrigin ),
+ // attributes for XAnimatePhysics
+ maStartVelocityX( rNode.maStartVelocityX ),
+ maStartVelocityY( rNode.maStartVelocityY ),
+ maDensity( rNode.maDensity ),
+ maBounciness( rNode.maBounciness ),
+
// attributes for XAnimateTransform
mnTransformType( rNode.mnTransformType ),