mirror of https://github.com/qt/qt3d.git
Logic: only execute FrameActions which are enabled
Change-Id: Ib89f6a4eae1b875a17c124337e0e4283d5d62b9e Task-number: QTBUG-60584 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
parent
8b45682dfb
commit
20ac249e7b
|
|
@ -96,7 +96,7 @@ void Executor::processLogicFrameUpdates(float dt)
|
||||||
const QVector<QNode *> nodes = m_scene->lookupNodes(m_nodeIds);
|
const QVector<QNode *> nodes = m_scene->lookupNodes(m_nodeIds);
|
||||||
for (QNode *node : nodes) {
|
for (QNode *node : nodes) {
|
||||||
QFrameAction *frameAction = qobject_cast<QFrameAction *>(node);
|
QFrameAction *frameAction = qobject_cast<QFrameAction *>(node);
|
||||||
if (frameAction)
|
if (frameAction && frameAction->isEnabled())
|
||||||
frameAction->onTriggered(dt);
|
frameAction->onTriggered(dt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue