mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[godot] Formatting fixes per latest format.sh
This commit is contained in:
parent
666b136a37
commit
2f48bf16e2
@ -1124,7 +1124,8 @@ void SpineSprite::draw() {
|
||||
auto bounding_box = (spine::BoundingBoxAttachment *) attachment;
|
||||
auto vertices = &statics.scratch_vertices;
|
||||
vertices->setSize(bounding_box->getWorldVerticesLength(), 0);
|
||||
bounding_box->computeWorldVertices(*skeleton->get_spine_object(), *slot, 0, bounding_box->getWorldVerticesLength(), vertices->buffer(), 0, 2);
|
||||
bounding_box->computeWorldVertices(*skeleton->get_spine_object(), *slot, 0, bounding_box->getWorldVerticesLength(), vertices->buffer(), 0,
|
||||
2);
|
||||
size_t num_vertices = vertices->size() / 2;
|
||||
statics.scratch_points.resize((int) num_vertices);
|
||||
memcpy(statics.scratch_points.ptrw(), vertices->buffer(), num_vertices * 2 * sizeof(float));
|
||||
@ -1297,7 +1298,8 @@ void SpineSprite::draw() {
|
||||
}
|
||||
|
||||
void SpineSprite::draw_bone(spine::Bone *bone, const Color &color) {
|
||||
draw_set_transform(Vector2(bone->getAppliedPose().getWorldX(), bone->getAppliedPose().getWorldY()), spine::MathUtil::Deg_Rad * bone->getAppliedPose().getWorldRotationX(),
|
||||
draw_set_transform(Vector2(bone->getAppliedPose().getWorldX(), bone->getAppliedPose().getWorldY()),
|
||||
spine::MathUtil::Deg_Rad * bone->getAppliedPose().getWorldRotationX(),
|
||||
Vector2(bone->getAppliedPose().getWorldScaleX(), bone->getAppliedPose().getWorldScaleY()));
|
||||
float bone_length = bone->getData().getLength();
|
||||
if (bone_length == 0) bone_length = debug_bones_thickness * 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user