[cpp] Fix incorrectly referencing attachment when adding skin to another skin.

This commit is contained in:
Mario Zechner 2023-04-05 15:50:59 +02:00
parent 2b5bedd543
commit 0fac0504ac

View File

@ -164,7 +164,6 @@ void Skin::addSkin(Skin *other) {
AttachmentMap::Entries entries = other->getAttachments(); AttachmentMap::Entries entries = other->getAttachments();
while (entries.hasNext()) { while (entries.hasNext()) {
AttachmentMap::Entry &entry = entries.next(); AttachmentMap::Entry &entry = entries.next();
entry._attachment->reference();
setAttachment(entry._slotIndex, entry._name, entry._attachment); setAttachment(entry._slotIndex, entry._name, entry._attachment);
} }
} }