diff --git a/src/posedocument.cpp b/src/posedocument.cpp index 18cdabbf..c4e506f1 100644 --- a/src/posedocument.cpp +++ b/src/posedocument.cpp @@ -170,7 +170,7 @@ void PoseDocument::updateOtherFramesParameters(const std::vector *rigBones, firstSpineBonePosition, neckJoint1BoneDirection); - reset(); + resetWithoutNotifingParametersChanged(); for (const auto &otherParameters: m_otherFramesParameters) { std::vector otherBones = *rigBones; @@ -328,7 +333,6 @@ void PoseDocument::parametersToNodes(const std::vector *rigBones, auto &bonesPart = this->partMap[partId]; bonesPart.id = partId; bonesPart.visible = this->m_hiddenSides.find(side) == this->m_hiddenSides.end(); - qDebug() << SkeletonSideToDispName(side) << "partId:" << partId << " visible:" << bonesPart.visible; (*m_partIdMap)[side] = partId; }; addPartIdOfSide(SkeletonSide::Left); diff --git a/src/posedocument.h b/src/posedocument.h index 6a1cbd79..c10e2103 100644 --- a/src/posedocument.h +++ b/src/posedocument.h @@ -37,6 +37,7 @@ public: void updateTurnaround(const QImage &image); void updateOtherFramesParameters(const std::vector>> &otherFramesParameters); + void resetWithoutNotifingParametersChanged(); void reset(); void toParameters(std::map> ¶meters, const std::set &limitNodeIds=std::set()) const;