diff options
author | TempoDev <alexia.legrand@epitech.eu> | 2020-08-26 02:29:01 +0300 |
---|---|---|
committer | TempoDev <alexia.legrand@epitech.eu> | 2020-08-26 02:29:01 +0300 |
commit | 114987ee428762f549cecc44cd1d36fd449fe2bb (patch) | |
tree | 0ef05d88ae4f80c10e863f2afd55f83545a057ff /source/blender | |
parent | f8ebfd0e88ca027bdacc49673c5aad73a826aece (diff) |
Custom Menus : fix load from factory preference crash
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index ef4f2b4a62a..2c129ef82f9 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -1840,6 +1840,8 @@ static void rna_struct_update_when_changed(bContext *C, PointerRNA *ptr_b) { CollectionPropertyIterator iter; + if (!ptr_a->data || !ptr_b->data) + return; PropertyRNA *iterprop = RNA_struct_iterator_property(ptr_a->type); BLI_assert(ptr_a->type == ptr_b->type); RNA_property_collection_begin(ptr_a, iterprop, &iter); |