From 5faee6221fe03d831b2b0cbbdeb000f153d8737a Mon Sep 17 00:00:00 2001 From: Knud Dollereder Date: Wed, 24 Mar 2021 15:31:31 +0100 Subject: [PATCH] Load all curves when opening DS with lastsession Change-Id: I2de37fbd25b828e585739edee8bb079c02f58f94 Reviewed-by: Thomas Hartmann --- .../qmldesigner/components/curveeditor/curveeditorview.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/qmldesigner/components/curveeditor/curveeditorview.cpp b/src/plugins/qmldesigner/components/curveeditor/curveeditorview.cpp index 865b04a453a..3f3f60d50a4 100644 --- a/src/plugins/qmldesigner/components/curveeditor/curveeditorview.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/curveeditorview.cpp @@ -118,6 +118,11 @@ void CurveEditorView::nodeReparented(const ModelNode &node, updateKeyframes(); else if (QmlTimelineKeyframeGroup::checkKeyframesType(node)) updateKeyframes(); + else if (newPropertyParent.isValid() && !oldPropertyParent.isValid()) { + if (activeTimeline().hasKeyframeGroupForTarget(node)) { + updateKeyframes(); + } + } } void CurveEditorView::auxiliaryDataChanged(const ModelNode &node,