Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-01-09 00:46:50 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-01-09 00:46:50 +0300
commit533d146f48d1a12c75506c4fca38f577902b79bf (patch)
tree109d30f609e952650411bbb285357476ee313d51 /source/blender/editors/gpencil
parent915177f99acb5f40d246311f9dcfc54d46c64c1b (diff)
Fix T72976: CRASH When Selecting Camera
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_utils.c2
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;