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:
Paul Lemire 2017-05-05 12:07:15 +02:00 committed by Sean Harmer
parent 8b45682dfb
commit 20ac249e7b
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ void Executor::processLogicFrameUpdates(float dt)
const QVector<QNode *> nodes = m_scene->lookupNodes(m_nodeIds);
for (QNode *node : nodes) {
QFrameAction *frameAction = qobject_cast<QFrameAction *>(node);
if (frameAction)
if (frameAction && frameAction->isEnabled())
frameAction->onTriggered(dt);
}