Add QML module QtQuick.Timeline.BlendTrees
This new QML module adds the ability to blend multiple
TimelineAnimations together to create new more dynamic animations. This
commit adds the following components:
BlendTreeNode
BlendAnimationNode
TimelineAnimationNode
BlendTreeNodes are a base class that produces frame data(property
changes for a frame). TimelineAnimationNodes produces frameData using
a TimelineAnimation. BlendAnimationNodes allows you to combine two
sources of frame data, by blending based on a weight value.
These can be chained together to create complex animations. By default,
no property changes are actually written to the scene. If you want to
commit the changes to the scene you should set the outputEnabled of any
BlendTreeNode to true, and it will commit its properties to the scene.
Normally, a Timeline component can only have a single animation playing
at a time, and enforces this behavior. It is not uncommon to define
multiple animations in a single Timeline though. For this module to work
you cannot use the Timeline.animations property, since this is the
mechanism that enforces that only one Animation can be played at a time.
Task-number: QTBUG-113136
Change-Id: I7d6cd7beaa1edf504cbd7386979e764bd42b84ec
Reviewed-by: Christian Strømme <christian.stromme@qt.io>