[Bf-blender-cvs] [342d94c3753] blender2.8: Fix compiler error: Stupid const vs non const

Joshua Leung noreply at git.blender.org
Wed May 23 18:29:56 CEST 2018


Commit: 342d94c3753ca939ac5fbe670b95e77b5bf4c9a9
Author: Joshua Leung
Date:   Wed May 23 18:29:52 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB342d94c3753ca939ac5fbe670b95e77b5bf4c9a9

Fix compiler error: Stupid const vs non const

===================================================================

M	source/blender/editors/space_graph/graph_buttons.c

===================================================================

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 */



More information about the Bf-blender-cvs mailing list