mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
Fix compile error with Bone::WorldFlipX
Code previously did not handle flip values, so revert the code to this state for Unity 4
This commit is contained in:
parent
30b36b6423
commit
97cb68749e
@ -287,7 +287,8 @@ public class SkeletonRagdoll2D : MonoBehaviour {
|
||||
// box.offset = new Vector2((b.WorldFlipX ? -length : length) / 2, 0);
|
||||
box.offset = new Vector2(length / 2, 0);
|
||||
#else
|
||||
box.center = new Vector2((b.WorldFlipX ? -length : length) / 2, 0);
|
||||
//box.center = new Vector2((b.WorldFlipX ? -length : length) / 2, 0);
|
||||
box.center = new Vector2(length/2, 0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user