mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 21:08:35 +02:00
Fix crash when adding new attachment
This commit is contained in:
parent
093d80e102
commit
afe76c69d2
1 changed files with 3 additions and 1 deletions
|
@ -1638,7 +1638,9 @@ void AvatarData::setAttachmentsVariant(const QVariantList& variant) {
|
|||
for (const auto& attachmentVar : variant) {
|
||||
AttachmentData attachment;
|
||||
attachment.fromVariant(attachmentVar);
|
||||
newAttachments.append(attachment);
|
||||
if (!attachment.modelURL.isEmpty()) {
|
||||
newAttachments.append(attachment);
|
||||
}
|
||||
}
|
||||
setAttachmentData(newAttachments);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue