summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsuippresentation.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-05-23 17:54:26 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-05-23 17:54:33 +0200
commit41ccb47065b9ba4418d792644415a424270b256f (patch)
tree7a1ae164efc44b4cd74344fb88d13fe1158576c4 /src/runtime/q3dsuippresentation.cpp
parent8bb3378d0d7c82eb1896ac043570ddab7c2edae9 (diff)
parentb81bba4795eea06d4dcbf39c99f986de2654077d (diff)
Merge remote-tracking branch 'origin/2.0'v2.0.0-beta2
Diffstat (limited to 'src/runtime/q3dsuippresentation.cpp')
-rw-r--r--src/runtime/q3dsuippresentation.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/runtime/q3dsuippresentation.cpp b/src/runtime/q3dsuippresentation.cpp
index 3633a2a..75bef24 100644
--- a/src/runtime/q3dsuippresentation.cpp
+++ b/src/runtime/q3dsuippresentation.cpp
@@ -2323,6 +2323,13 @@ void Q3DSEffectInstance::setProperties(const QXmlStreamAttributes &attrs, PropSe
// refer to custom properties defined in the effect.
for (const QXmlStreamAttribute &attr : attrs)
m_pendingCustomProperties.append(Q3DSPropertyChange(attr.name().toString(), attr.value().toString()));
+
+ // If this is on the master slide, store some rollback info.
+ if (flags.testFlag(PropSetOnMaster)) {
+ m_masterRollbackList.append(Q3DSPropertyChange(QLatin1String("eyeball"), m_active ? QLatin1String("True")
+ : QLatin1String("False")));
+
+ }
}
void Q3DSEffectInstance::applyPropertyChanges(const Q3DSPropertyChangeList &changeList)
@@ -2532,9 +2539,7 @@ void Q3DSNode::setProperties(const QXmlStreamAttributes &attrs, PropSetFlags fla
// If this is on the master slide, store some rollback info.
if (flags.testFlag(PropSetOnMaster)) {
- if (m_masterRollbackList.isNull())
- m_masterRollbackList.reset(new Q3DSPropertyChangeList);
- m_masterRollbackList->append(Q3DSPropertyChange(QLatin1String("eyeball"),
+ m_masterRollbackList.append(Q3DSPropertyChange(QLatin1String("eyeball"),
m_flags.testFlag(Q3DSNode::Active)
? QLatin1String("True") : QLatin1String("False")));