1 # SPDX-FileCopyrightText: 2006-2012 assimp team
2 # SPDX-FileCopyrightText: 2013 Blender Foundation
4 # SPDX-License-Identifier: GPL-2.0-or-later
18 FLOAT32_ARRAY
= b
'f'[0]
19 FLOAT64_ARRAY
= b
'd'[0]
23 # Some other misc defines
24 # Known combinations so far - supposed meaning: A = animatable, A+ = animated, U = UserProp
25 # VALID_NUMBER_FLAGS = {b'A', b'A+', b'AU', b'A+U'} # Not used...
27 # array types - actual length may vary (depending on underlying C implementation)!
30 # For now, bytes and bool are assumed always 1byte.
37 size
= array
.array(_t
).itemsize
42 if ARRAY_INT32
and ARRAY_INT64
:
45 raise Exception("Impossible to get a 4-bytes integer type for array!")
47 raise Exception("Impossible to get an 8-bytes integer type for array!")
52 size
= array
.array(_t
).itemsize
57 if ARRAY_FLOAT32
and ARRAY_FLOAT64
:
60 raise Exception("Impossible to get a 4-bytes float type for array!")
62 raise Exception("Impossible to get an 8-bytes float type for array!")