فهرست منبع

[cocos2d-x] Added early out check for MeshAttachment alpha == 0. Related to commit 254baf4. See #1708.

Harald Csaszar 5 سال پیش
والد
کامیت
46a0ffce50
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      spine-cocos2dx/src/spine/SkeletonRenderer.cpp

+ 4 - 0
spine-cocos2dx/src/spine/SkeletonRenderer.cpp

@@ -930,6 +930,10 @@ namespace spine {
 				if (static_cast<RegionAttachment*>(attachment)->getColor().a == 0)
 				if (static_cast<RegionAttachment*>(attachment)->getColor().a == 0)
 					return true;
 					return true;
 			}
 			}
+			else if (attachment->getRTTI().isExactly(MeshAttachment::rtti)) {
+				if (static_cast<MeshAttachment*>(attachment)->getColor().a == 0)
+					return true;
+			}
 			return false;
 			return false;
 		}
 		}