diff --git a/src/document.cpp b/src/document.cpp index 8d3303be..877241ae 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -527,9 +527,22 @@ void Document::setPoseFrames(QUuid poseId, std::vectorsecond.frames = frames; findPoseResult->second.dirty = true; + bool foundMotion = false; + for (auto &it: motionMap) { + for (const auto &clip: it.second.clips) { + if (poseId == clip.linkToId) { + it.second.dirty = true; + foundMotion = true; + break; + } + } + } emit posesChanged(); emit poseFramesChanged(poseId); emit optionsChanged(); + if (foundMotion) { + emit motionsChanged(); + } } void Document::setPoseTurnaroundImageId(QUuid poseId, QUuid imageId)