Skip to content

Commit

Permalink
Clipping issue (#182)
Browse files Browse the repository at this point in the history
* End clipping when calculating vx buffer size

* Build plugins with latest beta SDK

* Update runtime libs
  • Loading branch information
Jhonnyg authored Sep 11, 2024
1 parent a9d0b3b commit f2b1175
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion defold-spine/commonsrc/vertices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ uint32_t CalcVertexBufferSize(const spSkeleton* skeleton, spSkeletonClipping* sk
}
spSkeletonClipping_clipEnd(skeleton_clipper, slot);
}

spSkeletonClipping_clipEnd2(skeleton_clipper);

if (out_max_triangle_count)
{
*out_max_triangle_count = max_triangle_count;
Expand Down Expand Up @@ -337,6 +340,7 @@ uint32_t GenerateVertexData(dmArray<SpineVertex>& vertex_buffer, const spSkeleto
}
else
{
spSkeletonClipping_clipEnd(skeleton_clipper, slot);
continue;
}

Expand Down Expand Up @@ -364,7 +368,7 @@ uint32_t GenerateVertexData(dmArray<SpineVertex>& vertex_buffer, const spSkeleto

if (draw_descs_out)
{
SpineDrawDesc desc;
SpineDrawDesc desc = {};
desc.m_VertexStart = batch_vindex_start;
desc.m_BlendMode = (uint32_t) slot->data->blendMode;
desc.m_VertexCount = vindex - batch_vindex_start;
Expand Down
Binary file modified defold-spine/lib/arm64-android/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/arm64-ios/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/arm64-osx/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/armv7-android/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/js-web/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/wasm-web/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/x86-win32/spinec.lib
Binary file not shown.
Binary file modified defold-spine/lib/x86_64-ios/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/x86_64-linux/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/x86_64-osx/libspinec.a
Binary file not shown.
Binary file modified defold-spine/lib/x86_64-win32/spinec.lib
Binary file not shown.
Binary file modified defold-spine/plugins/lib/arm64-osx/libSpineExt.dylib
Binary file not shown.
Binary file modified defold-spine/plugins/lib/x86_64-linux/libSpineExt.so
Binary file not shown.
Binary file modified defold-spine/plugins/lib/x86_64-osx/libSpineExt.dylib
Binary file not shown.
Binary file modified defold-spine/plugins/lib/x86_64-win32/libSpineExt.dll
Binary file not shown.
Binary file modified defold-spine/plugins/share/pluginSpineExt.jar
Binary file not shown.

0 comments on commit f2b1175

Please sign in to comment.