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;
|
partId = fromNode->partId;
|
||||||
if (isPartReadonly(partId))
|
if (isPartReadonly(partId))
|
||||||
return QUuid();
|
return QUuid();
|
||||||
|
auto part = partMap.find(partId);
|
||||||
|
if (part != partMap.end())
|
||||||
|
part->second.dirty = true;
|
||||||
}
|
}
|
||||||
SkeletonNode node;
|
SkeletonNode node;
|
||||||
node.partId = partId;
|
node.partId = partId;
|
||||||
|
|
|
@ -160,6 +160,7 @@ public:
|
||||||
hasColor = other.hasColor;
|
hasColor = other.hasColor;
|
||||||
wrapped = other.wrapped;
|
wrapped = other.wrapped;
|
||||||
componentId = other.componentId;
|
componentId = other.componentId;
|
||||||
|
dirty = other.dirty;
|
||||||
}
|
}
|
||||||
void updatePreviewMesh(MeshLoader *previewMesh)
|
void updatePreviewMesh(MeshLoader *previewMesh)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue