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 <ideasman42@gmail.com>2020-03-26 05:18:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-26 07:32:40 +0300
commit38b211b58198f48b37473671d92d448bc48c4c67 (patch)
tree561b4ddbd6e8777217f93f713a4346bee6f4245c /source/blender/makesrna/intern/rna_scene.c
parent0a34e5b30085b2ec3225669d27175287fc2aa436 (diff)
Fix crash accessing length unit settings
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 932ac72324e..b36da87c804 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2502,7 +2502,9 @@ static const EnumPropertyItem *rna_UnitSettings_itemf_wrapper(const int system,
}
}
+ RNA_enum_item_end(&items, &totitem);
*r_free = true;
+
return items;
}