Fix conditional for writing real-typed properties
This commit is contained in:
parent
bb9ebfc8f9
commit
533c85b249
@ -1583,7 +1583,7 @@ def write_property_value(stream: io.BufferedIOBase,
|
|||||||
else:
|
else:
|
||||||
size = write_uint(stream, 8)
|
size = write_uint(stream, 8)
|
||||||
size += write_uint(stream, value)
|
size += write_uint(stream, value)
|
||||||
elif isinstance(value, real_t):
|
elif isinstance(value, (Fraction, float, int)):
|
||||||
size = write_real(stream, value, force_float32)
|
size = write_real(stream, value, force_float32)
|
||||||
elif isinstance(value, AString):
|
elif isinstance(value, AString):
|
||||||
size = write_uint(stream, 10)
|
size = write_uint(stream, 10)
|
||||||
|
Loading…
Reference in New Issue
Block a user