mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 02:58:44 +08:00
[csharp] Fixed compile error on e.g. Unity version 2017.1 not supporting 0b111 litterals.
This commit is contained in:
parent
b900fdc63c
commit
626e661ecf
@ -431,7 +431,7 @@ namespace Spine {
|
||||
int flags = input.ReadByte();
|
||||
string name = (flags & 8) != 0 ? input.ReadStringRef() : attachmentName;
|
||||
|
||||
switch ((AttachmentType)(flags & 0b111)) {
|
||||
switch ((AttachmentType)(flags & 0x7)) { // 0b111
|
||||
case AttachmentType.Region: {
|
||||
string path = (flags & 16) != 0 ? input.ReadStringRef() : null;
|
||||
uint color = (flags & 32) != 0 ? (uint)input.ReadInt() : 0xffffffff;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user