Fix part cache not update when add new node
parent
2156855444
commit
d6b38f5750
|
@ -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;
|
||||
|
|
|
@ -160,6 +160,7 @@ public:
|
|||
hasColor = other.hasColor;
|
||||
wrapped = other.wrapped;
|
||||
componentId = other.componentId;
|
||||
dirty = other.dirty;
|
||||
}
|
||||
void updatePreviewMesh(MeshLoader *previewMesh)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue