From be4f9fd0144f521b01c3903fbe36ef429595ecc7 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Mon, 10 Jun 2019 22:27:51 +0930 Subject: [PATCH] Fix last spine position --- src/posedocument.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/posedocument.cpp b/src/posedocument.cpp index f8de88a2..27449175 100644 --- a/src/posedocument.cpp +++ b/src/posedocument.cpp @@ -221,10 +221,10 @@ void PoseDocument::updateBonesFromParameters(std::vector *bones, valueOfKeyInMapOrEmpty(map, "toZ").toFloat() }; bone.tailPosition = toPosition; - for (const auto &child: bone.children) { - auto &childBone = (*bones)[child]; - childBone.headPosition = toPosition; - } + //for (const auto &child: bone.children) { + // auto &childBone = (*bones)[child]; + // childBone.headPosition = toPosition; + //} } } } @@ -613,4 +613,3 @@ void PoseDocument::firstSpinePositionAndLengthFromParameters(const std::map