diff options
author | Jacques Lucke <jacques@blender.org> | 2020-02-27 14:11:05 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-02-27 14:13:00 +0300 |
commit | 57bd1a0ae18b327a57c187c48bdb9effcb5f4b6a (patch) | |
tree | 689035c196861a0783d22168c37fc2b5f6138713 /source/blender/makesrna | |
parent | e420caab19cefe4c44a70394b96490d0e410de7b (diff) |
Fix T74227: Crash when clicking on viewport shading properties
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 3d5d5091bf1..5fdc2a18330 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -1280,6 +1280,8 @@ static const EnumPropertyItem *rna_3DViewShading_render_pass_itemf(bContext *C, RNA_enum_item_add(&result, &totitem, item); } } + + RNA_enum_item_end(&result, &totitem); *r_free = true; return result; } |