diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-09 19:15:51 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-09 19:15:51 +0300 |
commit | 6cd849809df032c543da48580753453db20abf67 (patch) | |
tree | 6fc1de3256ce3076e3cd61b09345c011ed7b1686 | |
parent | ad35b37f2d082d6618c44d14cb9b8d98f25563fc (diff) |
Bugfix 25147
Graph editor: operator poll for 'active curve' didn't check for
visibility flag, caused tool like ctrl+click to still work.
-rw-r--r-- | source/blender/editors/space_graph/graph_utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/graph_utils.c b/source/blender/editors/space_graph/graph_utils.c index 417d92782cc..31c1394f1ae 100644 --- a/source/blender/editors/space_graph/graph_utils.c +++ b/source/blender/editors/space_graph/graph_utils.c @@ -208,6 +208,11 @@ int graphop_active_fcurve_poll (bContext *C) /* free temp data... */ has_fcurve= ((ale->data) && (ale->type == ANIMTYPE_FCURVE)); + if(has_fcurve) { + FCurve *fcu= (FCurve *)ale->data; + has_fcurve= (fcu->flag & FCURVE_VISIBLE)!=0; + } + MEM_freeN(ale); /* return success */ |