diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-01-09 00:46:50 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-01-09 00:46:50 +0300 |
commit | 533d146f48d1a12c75506c4fca38f577902b79bf (patch) | |
tree | 109d30f609e952650411bbb285357476ee313d51 /source/blender | |
parent | 915177f99acb5f40d246311f9dcfc54d46c64c1b (diff) |
Fix T72976: CRASH When Selecting Camera
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c index 9de3c32e05e..9b1551fe2a5 100644 --- a/source/blender/editors/gpencil/gpencil_utils.c +++ b/source/blender/editors/gpencil/gpencil_utils.c @@ -365,7 +365,7 @@ bool gp_add_poll(bContext *C) bool gp_active_layer_poll(bContext *C) { Object *ob = CTX_data_active_object(C); - if (ob == NULL) { + if ((ob == NULL) || (ob->type != OB_GPENCIL)) { return false; } bGPdata *gpd = (bGPdata *)ob->data; |