Browse Source

Fix skeleton.getY() and skeleton.getScaleY() (#2454)

Kaisei 1 year ago
parent
commit
2c6d10bef8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      spine-flutter/lib/spine_flutter.dart

+ 2 - 2
spine-flutter/lib/spine_flutter.dart

@@ -3010,7 +3010,7 @@ class Skeleton {
   /// <p>
   /// <p>
   /// Bones that do not inherit translation are still affected by this property.
   /// Bones that do not inherit translation are still affected by this property.
   double getY() {
   double getY() {
-    return _bindings.spine_skeleton_get_x(_skeleton);
+    return _bindings.spine_skeleton_get_y(_skeleton);
   }
   }
 
 
   void setY(double y) {
   void setY(double y) {
@@ -3032,7 +3032,7 @@ class Skeleton {
   ///
   ///
   /// Bones that do not inherit scale are still affected by this property.
   /// Bones that do not inherit scale are still affected by this property.
   double getScaleY() {
   double getScaleY() {
-    return _bindings.spine_skeleton_get_scale_x(_skeleton);
+    return _bindings.spine_skeleton_get_scale_y(_skeleton);
   }
   }
 
 
   void setScaleY(double scaleY) {
   void setScaleY(double scaleY) {