diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-27 04:14:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-27 04:14:39 +0300 |
commit | da192fb3a78b72b7c11a73fa52354b9752538ce1 (patch) | |
tree | e52329f7f5ef8c4233e20057ffdea0af3c7c6c1e | |
parent | 77f0f3c54e9b641139da43a6aa7cf15af97fcc08 (diff) |
Missing NULL check getting selected obdata
-rw-r--r-- | source/blender/editors/interface/interface_ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 643397b5a5c..6549042c324 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -365,7 +365,10 @@ bool UI_context_copy_to_selected_list( /* avoid prepending 'data' to the path */ RNA_id_pointer_create(id_data, &link->ptr); } - id_data->flag &= ~LIB_DOIT; + + if (id_data) { + id_data->flag &= ~LIB_DOIT; + } } } |