summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/buildblendtreesjob.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Update commercial license headers"v5.15.3-lts-lgplTarja Sundqvist2021-03-231-19/+19
| | | | | | | | | | | This reverts commit 03e5f60e585701608c1181365faee484d7a1f14c. Revert of commercial license headers is required for Qt 5.15.3 opensource release. Task-number: QTBUG-91108 Change-Id: I359e89ed77b1b2750607617d138ebb6c316f0296 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Update commercial license headersTarja Sundqvist2021-02-021-19/+19
| | | | | | | | | | | | | | | | Updated header.COMM to the files in tqtc-qt3d. Examples, documentation files or tests are not updated. The commercial license header may contain some additional lines so that its line count equals with the earlier license header. Reason for this is that some autotests use hard coded line numbers and a change in the line count causes failures in tests. Task-number: QTQAINFRA-4155 Change-Id: I139c8ad72c042b0900239decc36cfed4bc1c4951 Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
* Fix Coverity warningsMike Krus2019-10-211-1/+2
| | | | | Change-Id: I00c875b48d838170fddf0b92f0ac5592828c6f0f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Animations: don't assert if mapper is not setPaul Lemire2019-08-261-1/+2
| | | | | | | | | We might provide it later, current approach forces it to be set at construction time which doesn't work if you use delayed loading of meshes and mappers. Change-Id: I8ee95d4751cb951d3a99c2fb80b1d5ba77905a2d Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Add normalizedTime function to blendedlclip animatorsChristian Strømme2018-01-231-2/+11
| | | | | Change-Id: I19c1907371d9d131295558eb19c297d544ebef7d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Generate default channel values as neededSean Harmer2018-01-221-0/+35
| | | | | Change-Id: I20871448ba10cf6459b156d00bebdf7a7c8a319b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Wrap up the format describing source clip and formatted resultsSean Harmer2018-01-181-8/+34
| | | | | | | | | | | | | | | | | | | | We need more information that just the source indices to be able to properly describe the transformation from the raw evaluation results of a clip, through to the formatted layout later consumed by the MappingData objects. The playback of a QClipAnimator still works but it seems that the process for properly blending animations is more complicated than previously thought. We cannot simply assume a default value of 0 for all channel components. If a clip has a channel missing but the user has still requested that this channel be evaluated (by way of a mapping or a subset of clips having matching channel data), then we must provide sensible defaults for those channel components. This deficiency will be dealt with in a following commit. Change-Id: I7d7d0f7ce19c545629bb347e1132fc4ed6a59d0d Reviewed-by: Christian Stromme <christian.stromme@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Iterate by const reference on handlesMike Krus2018-01-131-1/+1
| | | | | | | | When iterating on handles, use const references to avoid copy of non trivial type. Found by Clazy clazy-range-loop Change-Id: I33ec54b3958160da2517e196411bcf92cd7b3bff Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Re-build Blend-Trees when Clips have been loadedWieland Hagen2017-09-081-1/+4
| | | | | | | | | | | | | | | We need to notify the BlendedClipAnimators, when any of the clips it depends on have been loaded. So we register each animator at the clips that it depends on, mark the animator dirty when the clip has been loaded and thus trigger a re-run of the BuildBlendTreesJob. Make sure to guard accesses to the Handler via mutexes, because backend objects can be marked dirty from various threads. Task-number: QTBUG-61941 Change-Id: I4890d0d76d3118538537252f920d9477bed8f934 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add qAsConst, range-loop might detach Qt container (clazy reports)Mike Krus2017-05-021-1/+1
| | | | | Change-Id: I5d541cd0d08f17c25cbb839c111417130d133c3c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Rename AnimationClipLoader to AnimationClipSean Harmer2017-04-121-1/+1
| | | | | | | | It handles both loadign from file and from data constructed using the public API. Change-Id: Ic9e71dc60c36869548323312f7129df6c9edd763 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Implement the new blend tree prep and evaluation jobsSean Harmer2017-03-251-144/+49
| | | | | Change-Id: Ic619cfdc27d7c3c46d96d3cc0e83e9134ebb0216 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Remove AnimationUtils classSean Harmer2017-03-061-18/+18
| | | | | | | | | It was stateless, so make the static member functions free functions and export them for auto tests. We're already in the Qt3DAnimation::Animation namespace so this removes some visual clutter. Change-Id: I4e1a72c47d5bd4afb807ce5f6dc80dc0ce4bb213 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Cleanup coding style a littleSean Harmer2017-03-021-1/+3
| | | | | Change-Id: I8459ea5f16a11fc99b0743145d7a2b3c2f29d0c4 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Rename QLerpBlend to QLerpClipBlendSean Harmer2017-02-241-1/+1
| | | | | | | | Also rename backend class accordingly. Task-number: QTBUG-58904 Change-Id: I3a8d3898507e5055c2727e4bb1b19b06fdba988b Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Introduce QAbstractAnimationClip and rename QAnimationClipSean Harmer2017-02-241-2/+2
| | | | | | | | | | | | | Introduced an abstract base class for types of animation clip. Also renamed QAnimationClip to QAnimationClipLoader since it loads data from files. Also renamed corresponding backend type and fixed up unit tests accordingly. Task-number: QTBUG-58898 Change-Id: I01a96e108cbbcd12e01913693e96610598965018 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Animations: add type to the jobs for the profilerPaul Lemire2017-02-061-1/+2
| | | | | Change-Id: Ifa8d2def025608de6731b6391145df9ebb430d9f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* BlendedAnimations: allow nested blending nodes evaluationPaul Lemire2017-01-311-61/+139
| | | | | Change-Id: Ic6a70ee57f56dff7406b5917d620ea15b74ecb44 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Build blend trees and execute themPaul Lemire2017-01-291-0/+144
Also added loops property to the blendedclipanimator as mandated by rebase. Note: only handles LERP with single node for now Change-Id: I91e071467c604279262ec04288bc7f8b2b19f4a1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>