[Bf-blender-cvs] [f5f6f9c9ac3] master: Fix broken API doc generation: Partially revert rBa372638a76e0

Bastien Montagne noreply at git.blender.org
Sun Aug 6 18:41:52 CEST 2017


Commit: f5f6f9c9ac3ec37ef98eae54464a801c2b7ddcc9
Author: Bastien Montagne
Date:   Sun Aug 6 17:35:41 2017 +0200
Branches: master
https://developer.blender.org/rBf5f6f9c9ac3ec37ef98eae54464a801c2b7ddcc9

Fix broken API doc generation: Partially revert rBa372638a76e0

Making those arrays static remove them from exported symbols, which
breaks API doc generation script.

To be backported to 2.79 branch.

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

M	source/blender/editors/space_clip/space_clip.c
M	source/blender/editors/space_sequencer/space_sequencer.c

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

diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index 597b8be89b2..58930fa2cf2 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -821,7 +821,8 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
 #endif
 }
 
-static const char *clip_context_dir[] = {"edit_movieclip", "edit_mask", NULL};
+/* DO NOT make this static, this hides the symbol and breaks API generation script. */
+const char *clip_context_dir[] = {"edit_movieclip", "edit_mask", NULL};
 
 static int clip_context(const bContext *C, const char *member, bContextDataResult *result)
 {
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index f965c1af54a..f1d0f23f8af 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -435,7 +435,8 @@ static void sequencer_dropboxes(void)
 
 /* ************* end drop *********** */
 
-static const char *sequencer_context_dir[] = {"edit_mask", NULL};
+/* DO NOT make this static, this hides the symbol and breaks API generation script. */
+const char *sequencer_context_dir[] = {"edit_mask", NULL};
 
 static int sequencer_context(const bContext *C, const char *member, bContextDataResult *result)
 {




More information about the Bf-blender-cvs mailing list