[flutter] Fix missing definition of Blend mode set function (#2458)

* Fix skeleton.getY() and skeleton.getScaleY()

* [flutter] Fix missing definition of Blend mode set function.
This commit is contained in:
Kaisei 2024-03-06 11:27:13 +09:00 committed by GitHub
parent 4fb96bb24f
commit 5edc53f2b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1863,6 +1863,12 @@ spine_blend_mode spine_slot_data_get_blend_mode(spine_slot_data slot) {
return (spine_blend_mode) _slot->getBlendMode();
}
void spine_slot_data_set_blend_mode(spine_slot_data slot, spine_blend_mode blendMode) {
if (slot == nullptr) return;
SlotData *_slot = (SlotData *) slot;
_slot->setBlendMode((BlendMode) blendMode);
}
// Slot
void spine_slot_set_to_setup_pose(spine_slot slot) {
if (slot == nullptr) return;