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:
Matt Vroman 2016-03-01 11:57:47 -08:00
parent 30b36b6423
commit 97cb68749e

View File

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