Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-02-20 13:28:59 +0300
committerCampbell Barton <campbell@blender.org>2022-02-21 04:01:32 +0300
commit7b11c717294341f5c288e2dc8432e84bc53663ff (patch)
tree9491ea278c18761762733ffc97c82477959af771 /source/blender/blenlib/BLI_array.h
parent2554ef986a8ccd1dc245478f99524dc68f8af435 (diff)
RNA: modify debug mode logic for setting invalid unset values
The previous behavior called RNA_enum_item_add a second time, filled it's contents with invalid values then subtracted totitem, this caused an unusual reallocation pattern where MEM_recallocN would run in order to create the dummy item, then again when adding another itme (reallocating an array of the same size). Simply memset the array to 0xff instead.
Diffstat (limited to 'source/blender/blenlib/BLI_array.h')
0 files changed, 0 insertions, 0 deletions