Fix enum toGodot
This commit is contained in:
parent
4a5e0fe95f
commit
69cb828750
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ proc godotVariantType*(T: typedesc[enum]): VariantType {.inline.} =
|
||||||
VariantType.Int
|
VariantType.Int
|
||||||
|
|
||||||
proc toGodot*[T: enum](self: T): Variant {.inline.} =
|
proc toGodot*[T: enum](self: T): Variant {.inline.} =
|
||||||
variant(ord(self))
|
variant(int64(ord(self)))
|
||||||
|
|
||||||
proc fromGodot*[T: enum](self: var T, val: Variant): ConversionResult =
|
proc fromGodot*[T: enum](self: var T, val: Variant): ConversionResult =
|
||||||
if val.getType() == VariantType.Int:
|
if val.getType() == VariantType.Int:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue