From 342d94c3753ca939ac5fbe670b95e77b5bf4c9a9 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 23 May 2018 18:29:52 +0200 Subject: Fix compiler error: Stupid const vs non const --- source/blender/editors/space_graph/graph_buttons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c index 67e139e5358..3c75bc5763d 100644 --- a/source/blender/editors/space_graph/graph_buttons.c +++ b/source/blender/editors/space_graph/graph_buttons.c @@ -994,9 +994,9 @@ static void graph_panel_drivers(const bContext *C, Panel *pa) /* ----------------------------------------------------------------- */ /* poll to make this not show up in the graph editor, as this is only to be used as a popup elsewhere */ -static int graph_panel_drivers_popover_poll(bContext *C, PanelType *UNUSED(pt)) +static int graph_panel_drivers_popover_poll(const bContext *C, PanelType *UNUSED(pt)) { - return ED_operator_graphedit_active(C) == false; + return ED_operator_graphedit_active((bContext *)C) == false; } /* popover panel for driver editing anywhere in ui */ -- cgit v1.2.3