From e158a52263d4852ff0d5b0703dfea9659ce74d8b Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 23 Nov 2017 15:59:48 +0200 Subject: Fix moving CPropertyGraphKeyframes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CCmdDataModelSetKeyframeValue command was never finalized, causing corruption of the application state. Task-number: QT3DS-95 Change-Id: I88f57b08e6fdbd7927f3360fdd2976b14b1b4609 Reviewed-by: Antti Määttä Reviewed-by: Tomi Korpipää --- .../Studio/Palettes/Timeline/Bindings/Qt3DSDMTimelineItemProperty.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3