mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[csharp] Minor: removed semicolon after switch causing formatter check issues.
This commit is contained in:
parent
3ffa9f1d31
commit
3ef84af5dd
@ -295,7 +295,7 @@ namespace Spine {
|
||||
case 4: from = new FromScaleY(); break;
|
||||
case 5: from = new FromShearY(); break;
|
||||
default: from = null; break;
|
||||
};
|
||||
}
|
||||
from.offset = input.ReadFloat() * fromScale;
|
||||
ToProperty[] tos = from.to.Resize(tn = input.ReadSByte()).Items;
|
||||
for (int t = 0; t < tn; t++) {
|
||||
@ -317,7 +317,7 @@ namespace Spine {
|
||||
case 4: to = new ToScaleY(); break;
|
||||
case 5: to = new ToShearY(); break;
|
||||
default: to = null; break;
|
||||
};
|
||||
}
|
||||
to.offset = input.ReadFloat() * toScale;
|
||||
to.max = input.ReadFloat() * toScale;
|
||||
to.scale = input.ReadFloat() * (toScale / fromScale);
|
||||
@ -426,7 +426,7 @@ namespace Spine {
|
||||
case 4: data.property = new FromScaleY(); break;
|
||||
case 5: data.property = new FromShearY(); break;
|
||||
default: data.property = null; break;
|
||||
};
|
||||
}
|
||||
data.property.offset = offset * propertyScale;
|
||||
data.offset = input.ReadFloat();
|
||||
data.scale = input.ReadFloat() / propertyScale;
|
||||
|
||||
@ -561,7 +561,7 @@ namespace Spine {
|
||||
case "scaleY": return new FromScaleY();
|
||||
case "shearY": return new FromShearY();
|
||||
default: throw new Exception("Invalid from property: " + type);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private float PropertyScale (String type, float scale) {
|
||||
@ -570,7 +570,7 @@ namespace Spine {
|
||||
case "y":
|
||||
return scale;
|
||||
default: return 1;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private Attachment ReadAttachment (Dictionary<string, Object> map, Skin skin, int slotIndex, string name, SkeletonData skeletonData) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user