summaryrefslogtreecommitdiffstats
path: root/src/render/backend/transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/transform.cpp')
-rw-r--r--src/render/backend/transform.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/render/backend/transform.cpp b/src/render/backend/transform.cpp
index 7c9afc3cf..8e98801b7 100644
--- a/src/render/backend/transform.cpp
+++ b/src/render/backend/transform.cpp
@@ -88,28 +88,6 @@ QVector3D Transform::translation() const
return m_translation;
}
-// TODOSYNC remove once we've found a way to propagate animation changes
-void Transform::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)
-{
- // TODO: Flag the matrix as dirty and update all matrices batched in a job
- if (e->type() == PropertyUpdated) {
- const QPropertyUpdatedChangePtr &propertyChange = qSharedPointerCast<QPropertyUpdatedChange>(e);
- if (propertyChange->propertyName() == QByteArrayLiteral("scale3D")) {
- m_scale = propertyChange->value().value<QVector3D>();
- updateMatrix();
- } else if (propertyChange->propertyName() == QByteArrayLiteral("rotation")) {
- m_rotation = propertyChange->value().value<QQuaternion>();
- updateMatrix();
- } else if (propertyChange->propertyName() == QByteArrayLiteral("translation")) {
- m_translation = propertyChange->value().value<QVector3D>();
- updateMatrix();
- }
- }
- markDirty(AbstractRenderer::TransformDirty);
-
- BackendNode::sceneChangeEvent(e);
-}
-
void Transform::syncFromFrontEnd(const QNode *frontEnd, bool firstTime)
{
const Qt3DCore::QTransform *transform = qobject_cast<const Qt3DCore::QTransform *>(frontEnd);