Explorar el Código

[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.
Kaisei hace 1 año
padre
commit
5edc53f2b0
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      spine-flutter/src/spine_flutter.cpp

+ 6 - 0
spine-flutter/src/spine_flutter.cpp

@@ -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;