diff --git a/src/skeletondocument.cpp b/src/skeletondocument.cpp index 8de92dd0..9189d2d7 100644 --- a/src/skeletondocument.cpp +++ b/src/skeletondocument.cpp @@ -273,6 +273,9 @@ QUuid SkeletonDocument::createNode(float x, float y, float z, float radius, QUui partId = fromNode->partId; if (isPartReadonly(partId)) return QUuid(); + auto part = partMap.find(partId); + if (part != partMap.end()) + part->second.dirty = true; } SkeletonNode node; node.partId = partId; diff --git a/src/skeletondocument.h b/src/skeletondocument.h index e04c13e2..00df114a 100644 --- a/src/skeletondocument.h +++ b/src/skeletondocument.h @@ -160,6 +160,7 @@ public: hasColor = other.hasColor; wrapped = other.wrapped; componentId = other.componentId; + dirty = other.dirty; } void updatePreviewMesh(MeshLoader *previewMesh) {