diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-12-19 23:35:53 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-12-19 23:35:53 +0300 |
commit | 5881922bc5efbb0c542344c9e6f320ec9eb4235a (patch) | |
tree | 5b65bf1b986aa9db001c6bcb6df73c56c02a0ba5 | |
parent | 3c9ae035fbe81f0b6397a27ec3489bbdb430b2ef (diff) |
Add G_FILE_IGNORE_DEPRECATION_WARNINGS option to G.fileflags in preparation of BGE python API cleanup
-rw-r--r-- | source/blender/blenkernel/BKE_global.h | 1 | ||||
-rw-r--r-- | source/blender/src/header_info.c | 7 | ||||
-rw-r--r-- | source/blender/src/space.c | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h index 3a2dca525b8..e8918bcdce6 100644 --- a/source/blender/blenkernel/BKE_global.h +++ b/source/blender/blenkernel/BKE_global.h @@ -227,6 +227,7 @@ typedef struct Global { #define G_FILE_GLSL_NO_RAMPS (1 << 19) #define G_FILE_GLSL_NO_NODES (1 << 20) #define G_FILE_GLSL_NO_EXTRA_TEX (1 << 21) +#define G_FILE_IGNORE_DEPRECATION_WARNINGS (1 << 22) /* G.windowstate */ #define G_WINDOWSTATE_USERDEF 0 diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index b6bd00d2ad6..6e43b6073eb 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -1672,6 +1672,7 @@ static uiBlock *info_game_glslmenu(void *arg_unused) static void do_info_gamemenu(void *arg, int event) { switch (event) { + case G_FILE_IGNORE_DEPRECATION_WARNINGS: case G_FILE_ENABLE_ALL_FRAMES: case G_FILE_DISPLAY_LISTS: case G_FILE_SHOW_FRAMERATE: @@ -1750,6 +1751,12 @@ static uiBlock *info_gamemenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Show Debug Properties", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_SHOW_DEBUG_PROPS, ""); } + if(G.fileflags & G_FILE_IGNORE_DEPRECATION_WARNINGS) { + uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Ignore Deprecation Warnings", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_IGNORE_DEPRECATION_WARNINGS, ""); + } else { + uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Ignore Deprecation Warnings", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_IGNORE_DEPRECATION_WARNINGS, ""); + } + uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 1, 0, ""); if(!(G.fileflags & G_FILE_GAME_MAT)) { diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 4267159baee..bba58840566 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -424,6 +424,9 @@ void space_set_commmandline_options(void) { a= (G.fileflags & G_FILE_GAME_TO_IPO); SYS_WriteCommandLineInt(syshandle, "game2ipo", a); + a= (G.fileflags & G_FILE_IGNORE_DEPRECATION_WARNINGS); + SYS_WriteCommandLineInt(syshandle, "ignore_deprecation_warnings", a); + a=(G.fileflags & G_FILE_GAME_MAT); SYS_WriteCommandLineInt(syshandle, "blender_material", a); a=(G.fileflags & G_FILE_GAME_MAT_GLSL); |