Fix conditional for writing real-typed properties

This commit is contained in:
Jan Petykiewicz 2020-04-18 01:42:14 -07:00
parent bb9ebfc8f9
commit 533c85b249

View File

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