浏览代码

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

Mario Zechner 2 年之前
父节点
当前提交
0fac0504ac
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      spine-cpp/spine-cpp/src/spine/Skin.cpp

+ 0 - 1
spine-cpp/spine-cpp/src/spine/Skin.cpp

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