mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[cocos2dx] Resolved merge conflict that got accidentially commited.
This commit is contained in:
parent
253bda4ee4
commit
5a78663bfa
@ -305,31 +305,10 @@ namespace spine {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
// Early exit if slot is invisible
|
// Early exit if slot is invisible
|
||||||
if (slot->getColor().a == 0) {
|
if (slot->getColor().a == 0) {
|
||||||
_clipper->clipEnd(*slot);
|
_clipper->clipEnd(*slot);
|
||||||
continue;
|
continue;
|
||||||
=======
|
|
||||||
if (!isTwoColorTint) {
|
|
||||||
triangles.indices = attachmentVertices->_triangles->indices;
|
|
||||||
triangles.indexCount = attachmentVertices->_triangles->indexCount;
|
|
||||||
triangles.verts = batch->allocateVertices(attachmentVertices->_triangles->vertCount);
|
|
||||||
triangles.vertCount = attachmentVertices->_triangles->vertCount;
|
|
||||||
memcpy(triangles.verts, attachmentVertices->_triangles->verts, sizeof(cocos2d::V3F_C4B_T2F) * attachmentVertices->_triangles->vertCount);
|
|
||||||
int vertexSizeInFloats = sizeof(cocos2d::V3F_C4B_T2F) / sizeof(float);
|
|
||||||
spVertexAttachment_computeWorldVertices(SUPER(attachment), slot, 0, attachment->super.worldVerticesLength, (float*)triangles.verts, 0, vertexSizeInFloats);
|
|
||||||
} else {
|
|
||||||
trianglesTwoColor.indices = attachmentVertices->_triangles->indices;
|
|
||||||
trianglesTwoColor.indexCount = attachmentVertices->_triangles->indexCount;
|
|
||||||
trianglesTwoColor.verts = twoColorBatch->allocateVertices(attachmentVertices->_triangles->vertCount);
|
|
||||||
trianglesTwoColor.vertCount = attachmentVertices->_triangles->vertCount;
|
|
||||||
for (int i = 0; i < trianglesTwoColor.vertCount; i++) {
|
|
||||||
trianglesTwoColor.verts[i].texCoords = attachmentVertices->_triangles->verts[i].texCoords;
|
|
||||||
}
|
|
||||||
int vertexSizeInFloats = sizeof(V3F_C4B_C4B_T2F) / sizeof(float);
|
|
||||||
spVertexAttachment_computeWorldVertices(SUPER(attachment), slot, 0, attachment->super.worldVerticesLength, (float*)trianglesTwoColor.verts, 0, vertexSizeInFloats);
|
|
||||||
>>>>>>> 3.7-beta
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cocos2d::TrianglesCommand::Triangles triangles;
|
cocos2d::TrianglesCommand::Triangles triangles;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user