Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/intern/dna_genfile.c
| Context not available. | |||||
| * | * | ||||
| * ALLOWED AND TESTED CHANGES IN STRUCTS: | * ALLOWED AND TESTED CHANGES IN STRUCTS: | ||||
| * - type change (a char to float will be divided by 255) | * - type change (a char to float will be divided by 255) | ||||
| * - location within a struct (everthing can be randomly mixed up) | * - location within a struct (everything can be randomly mixed up) | ||||
| * - struct within struct (within struct etc), this is recursive | * - struct within struct (within struct etc), this is recursive | ||||
| * - adding new elements, will be default initialized zero | * - adding new elements, will be default initialized zero | ||||
| * - removing elements | * - removing elements | ||||
| Context not available. | |||||
| * \param type Current field type name | * \param type Current field type name | ||||
| * \param name Current field name | * \param name Current field name | ||||
| * \param old Pointer to struct information in sdna | * \param old Pointer to struct information in sdna | ||||
| * \return true when existsing, false otherwise. | * \return true when existing, false otherwise. | ||||
| */ | */ | ||||
| static bool elem_exists( | static bool elem_exists( | ||||
| const SDNA *sdna, | const SDNA *sdna, | ||||
| Context not available. | |||||
| else if (ELEM(spc[0], SDNA_TYPE_INT, SDNA_TYPE_FLOAT)) { | else if (ELEM(spc[0], SDNA_TYPE_INT, SDNA_TYPE_FLOAT)) { | ||||
| /* note, intentionally ignore long/ulong here these could be 4 or 8 bits, | /* note, intentionally ignore long/ulong here these could be 4 or 8 bits, | ||||
| * but turns out we only used for runtime vars and | * but turns out we only used for runtime vars and | ||||
| * only once for a struct type thats no longer used. */ | * only once for a struct type that's no longer used. */ | ||||
| BLI_endian_switch_int32_array((int32_t *)cur, DNA_elem_array_size(name)); | BLI_endian_switch_int32_array((int32_t *)cur, DNA_elem_array_size(name)); | ||||
| } | } | ||||
| Context not available. | |||||