Browse Source

Merge branch '3.8-beta' into skin-bones

badlogic 6 years ago
parent
commit
d14b5dc22a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-cocos2dx/src/spine/SkeletonRenderer.cpp

+ 1 - 1
spine-cocos2dx/src/spine/SkeletonRenderer.cpp

@@ -120,7 +120,7 @@ namespace spine {
 			if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) {
 			if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) {
 				RegionAttachment* attachment = (RegionAttachment*)slot->getAttachment();
 				RegionAttachment* attachment = (RegionAttachment*)slot->getAttachment();
 				texture = static_cast<AttachmentVertices*>(attachment->getRendererObject())->_texture;
 				texture = static_cast<AttachmentVertices*>(attachment->getRendererObject())->_texture;
-			} else if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) {
+			} else if (slot->getAttachment()->getRTTI().isExactly(MeshAttachment::rtti)) {
 				MeshAttachment* attachment = (MeshAttachment*)slot->getAttachment();
 				MeshAttachment* attachment = (MeshAttachment*)slot->getAttachment();
 				texture = static_cast<AttachmentVertices*>(attachment->getRendererObject())->_texture;
 				texture = static_cast<AttachmentVertices*>(attachment->getRendererObject())->_texture;
 			} else {
 			} else {