summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2017-11-23 15:59:48 +0200
committerAntti Kokko <antti.kokko@qt.io>2017-11-28 09:38:33 +0000
commite158a52263d4852ff0d5b0703dfea9659ce74d8b (patch)
tree26ddb6c5ebc2345664bb601c60907f44f148a1cf
parent123dcb4b1358a29e227ef7cf21f3851ebe6829a0 (diff)
Fix moving CPropertyGraphKeyframes
CCmdDataModelSetKeyframeValue command was never finalized, causing corruption of the application state. Task-number: QT3DS-95 Change-Id: I88f57b08e6fdbd7927f3360fdd2976b14b1b4609 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/Authoring/Studio/Palettes/Timeline/Bindings/Qt3DSDMTimelineItemProperty.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Timeline/Bindings/Qt3DSDMTimelineItemProperty.cpp b/src/Authoring/Studio/Palettes/Timeline/Bindings/Qt3DSDMTimelineItemProperty.cpp
index b7b42313..a7fc4c53 100644
--- a/src/Authoring/Studio/Palettes/Timeline/Bindings/Qt3DSDMTimelineItemProperty.cpp
+++ b/src/Authoring/Studio/Palettes/Timeline/Bindings/Qt3DSDMTimelineItemProperty.cpp
@@ -387,6 +387,7 @@ long Qt3DSDMTimelineItemProperty::OffsetSelectedKeyframes(long inOffset)
void Qt3DSDMTimelineItemProperty::CommitChangedKeyframes()
{
if (m_SetKeyframeValueCommand) { // if this is moving a keyframe value
+ m_SetKeyframeValueCommand->Finalize(m_SetKeyframeValueCommand->GetValue());
g_StudioApp.GetCore()->ExecuteCommand(m_SetKeyframeValueCommand, false);
m_SetKeyframeValueCommand = nullptr;
} else // otherwise its changing keyframe times