mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[c] Fixed sorting of path constraints when slot attachment is null.
This commit is contained in:
parent
2a37edd8a6
commit
9f569fef3b
@ -269,7 +269,7 @@ static void _sortPathConstraint(_spSkeleton* const internal, spPathConstraint* c
|
|||||||
_sortPathConstraintAttachment(internal, skeleton->data->skins[i], slotIndex, slotBone);
|
_sortPathConstraintAttachment(internal, skeleton->data->skins[i], slotIndex, slotBone);
|
||||||
|
|
||||||
attachment = slot->attachment;
|
attachment = slot->attachment;
|
||||||
if (attachment->type == SP_ATTACHMENT_PATH) _sortPathConstraintAttachmentBones(internal, attachment, slotBone);
|
if (attachment && attachment->type == SP_ATTACHMENT_PATH) _sortPathConstraintAttachmentBones(internal, attachment, slotBone);
|
||||||
|
|
||||||
constrained = constraint->bones;
|
constrained = constraint->bones;
|
||||||
boneCount = constraint->bonesCount;
|
boneCount = constraint->bonesCount;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user