fix for crash in own commit - happend when changing userprefs.

This commit is contained in:
Campbell Barton
2012-12-18 16:52:46 +00:00
parent 54bab21ca0
commit 27796a34b1

View File

@@ -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))