From 10160285b865386fe668752697c2af2dcb02bc61 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sun, 2 Sep 2018 10:24:39 +0800 Subject: [PATCH] Fix mesh cache When origin changed by user, all parts should be regenerated. --- src/skeletondocument.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/skeletondocument.cpp b/src/skeletondocument.cpp index 675c3151..8ac78ae4 100644 --- a/src/skeletondocument.cpp +++ b/src/skeletondocument.cpp @@ -479,6 +479,7 @@ void SkeletonDocument::moveOriginBy(float x, float y, float z) originY += y; if (!zlocked) originZ += z; + markAllDirty(); emit originChanged(); emit skeletonChanged(); }