diff options
-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)) |