Skip to content

Commit

Permalink
Fix parts list reload
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Jan 22, 2023
1 parent 02611ba commit 1e58530
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/sources/document.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,10 @@ void Document::addFromSnapshot(const dust3d::Snapshot& snapshot, enum SnapshotSo
emit partAdded(partIt);
}

emit componentChildrenChanged(dust3d::Uuid());
if (SnapshotSource::Paste == source)
emit componentChildrenChanged(m_currentCanvasComponentId);
else
emit componentChildrenChanged(dust3d::Uuid());
if (isOriginChanged)
emit originChanged();

Expand Down

0 comments on commit 1e58530

Please sign in to comment.