mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:24:36 +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) {
|
for (const auto& attachmentVar : variant) {
|
||||||
AttachmentData attachment;
|
AttachmentData attachment;
|
||||||
attachment.fromVariant(attachmentVar);
|
attachment.fromVariant(attachmentVar);
|
||||||
newAttachments.append(attachment);
|
if (!attachment.modelURL.isEmpty()) {
|
||||||
|
newAttachments.append(attachment);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setAttachmentData(newAttachments);
|
setAttachmentData(newAttachments);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue