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:
authorTon Roosendaal <ton@blender.org>2010-12-09 19:15:51 +0300
committerTon Roosendaal <ton@blender.org>2010-12-09 19:15:51 +0300
commit6cd849809df032c543da48580753453db20abf67 (patch)
tree6fc1de3256ce3076e3cd61b09345c011ed7b1686 /source/blender/editors/space_graph/graph_utils.c
parentad35b37f2d082d6618c44d14cb9b8d98f25563fc (diff)
Bugfix 25147
Graph editor: operator poll for 'active curve' didn't check for visibility flag, caused tool like ctrl+click to still work.
Diffstat (limited to 'source/blender/editors/space_graph/graph_utils.c')
-rw-r--r--source/blender/editors/space_graph/graph_utils.c5
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 */