summaryrefslogtreecommitdiffstats
path: root/src/animation
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2019-10-08 11:36:58 +0100
committerMike Krus <mike.krus@kdab.com>2019-10-14 19:56:26 +0100
commit0ce9f6a41571a938dde47f7f068d7fce76288813 (patch)
treea55516ec4c880c44f28a02131ffa3e8d1a84186e /src/animation
parente8ef2e3e75278f18abe977927393c819d3880618 (diff)
Restore use of Added/Removed messages for aspects not supporting sync
If (third party) aspects don't support direct sync, restore use of PropertyValueAdded and PropertyValueRemoved messages so avoid breaking existing code Change-Id: Icac717583a8fe72acdb0cf599981251e310734bd Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/frontend/qchannelmapper.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animation/frontend/qchannelmapper.cpp b/src/animation/frontend/qchannelmapper.cpp
index 2146290e4..ab98039b4 100644
--- a/src/animation/frontend/qchannelmapper.cpp
+++ b/src/animation/frontend/qchannelmapper.cpp
@@ -36,6 +36,7 @@
#include "qchannelmapper.h"
#include "qchannelmapper_p.h"
+#include <Qt3DCore/qscenechange.h>
#include <Qt3DAnimation/qchannelmapping.h>
QT_BEGIN_NAMESPACE
@@ -85,7 +86,7 @@ void QChannelMapper::addMapping(QAbstractChannelMapping *mapping)
if (!mapping->parent())
mapping->setParent(this);
- d->update();
+ d->updateNode(mapping, "mappings", Qt3DCore::PropertyValueAdded);
}
}
@@ -94,7 +95,7 @@ void QChannelMapper::removeMapping(QAbstractChannelMapping *mapping)
Q_ASSERT(mapping);
Q_D(QChannelMapper);
d->m_mappings.removeOne(mapping);
- d->update();
+ d->updateNode(mapping, "mappings", Qt3DCore::PropertyValueRemoved);
// Remove bookkeeping connection
d->unregisterDestructionHelper(mapping);
}