diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-18 20:52:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-18 20:52:46 +0400 |
commit | 27796a34b121ed762044fef353ef57084175132d (patch) | |
tree | 62b39a1179e1b69f6c62c32c0e27bd1991bf89ea /source | |
parent | 54bab21ca0abb63b71bc47ce092ffcdd192b70e0 (diff) |
fix for crash in own commit - happend when changing userprefs.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 00fc8e7662b..5d9819689d3 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -584,6 +584,10 @@ static char *wm_prop_pystring_from_context(bContext *C, PointerRNA *ptr, Propert const char *identifier = link->data; PointerRNA ctx_ptr = CTX_data_pointer_get(C, identifier); + if (ctx_ptr.type == NULL) { + continue; + } + if (ptr->id.data == ctx_ptr.id.data) { if ((ptr->data == ctx_ptr.data) && (ptr->type == ctx_ptr.type)) |