forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/7.0' into 8.0
Change-Id: I3780a56c1e02c2e98028aaf02b54733c6f222498
This commit is contained in:
@@ -148,16 +148,23 @@ void CurveEditorView::instancePropertyChanged(const QList<QPair<ModelNode, Prope
|
||||
{
|
||||
Q_UNUSED(propertyList);
|
||||
|
||||
for (const auto &pair : propertyList) {
|
||||
if (!QmlTimeline::isValidQmlTimeline(pair.first))
|
||||
continue;
|
||||
if (auto timeline = activeTimeline(); timeline.isValid()) {
|
||||
|
||||
if (pair.second == "startFrame")
|
||||
updateStartFrame(pair.first);
|
||||
else if (pair.second == "endFrame")
|
||||
updateEndFrame(pair.first);
|
||||
else if (pair.second == "currentFrame")
|
||||
updateCurrentFrame(pair.first);
|
||||
auto timelineNode = timeline.modelNode();
|
||||
for (const auto &pair : propertyList) {
|
||||
if (!QmlTimeline::isValidQmlTimeline(pair.first))
|
||||
continue;
|
||||
|
||||
if (pair.first != timelineNode)
|
||||
continue;
|
||||
|
||||
if (pair.second == "startFrame")
|
||||
updateStartFrame(pair.first);
|
||||
else if (pair.second == "endFrame")
|
||||
updateEndFrame(pair.first);
|
||||
else if (pair.second == "currentFrame")
|
||||
updateCurrentFrame(pair.first);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user