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:
authorTempoDev <alexia.legrand@epitech.eu>2020-08-26 02:29:01 +0300
committerTempoDev <alexia.legrand@epitech.eu>2020-08-26 02:29:01 +0300
commit114987ee428762f549cecc44cd1d36fd449fe2bb (patch)
tree0ef05d88ae4f80c10e863f2afd55f83545a057ff /source/blender/windowmanager
parentf8ebfd0e88ca027bdacc49673c5aad73a826aece (diff)
Custom Menus : fix load from factory preference crash
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
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);