diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-19 18:30:10 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-19 18:30:19 +0300 |
commit | 35b4e3a3501c9c797f2269421bc778e949fb46af (patch) | |
tree | 0f11dd7841601c1a50bf9636c8d3a26bf8bd7cab /release/freedesktop | |
parent | c771dd5e9c85335aa5e4cf60cfa61bc286c26229 (diff) |
RNA: Don't allocate empty char pointer properties
Instead of allocating a single 0 char, set the `char *` DNA pointer to
null. This avoids the overhead of allocating and copying single-bytes.
rBeed45b655c9f didn't do this for safety reasons, but I checked the
existing uses of this behavior in DNA/RNA. Out of 43 total `char *`
members, this change only affects 7 recently added properties.
For a complete list, see the patch description.
Differential Revision: https://developer.blender.org/D14779
Diffstat (limited to 'release/freedesktop')
0 files changed, 0 insertions, 0 deletions