[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17961] trunk/blender/source/blender: Add G_FILE_IGNORE_DEPRECATION_WARNINGS option to G. fileflags in preparation of BGE python API cleanup
Benoit Bolsee
benoit.bolsee at online.be
Fri Dec 19 21:35:56 CET 2008
Revision: 17961
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17961
Author: ben2610
Date: 2008-12-19 21:35:53 +0100 (Fri, 19 Dec 2008)
Log Message:
-----------
Add G_FILE_IGNORE_DEPRECATION_WARNINGS option to G.fileflags in preparation of BGE python API cleanup
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/BKE_global.h
trunk/blender/source/blender/src/header_info.c
trunk/blender/source/blender/src/space.c
Modified: trunk/blender/source/blender/blenkernel/BKE_global.h
===================================================================
--- trunk/blender/source/blender/blenkernel/BKE_global.h 2008-12-19 19:47:25 UTC (rev 17960)
+++ trunk/blender/source/blender/blenkernel/BKE_global.h 2008-12-19 20:35:53 UTC (rev 17961)
@@ -227,6 +227,7 @@
#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
Modified: trunk/blender/source/blender/src/header_info.c
===================================================================
--- trunk/blender/source/blender/src/header_info.c 2008-12-19 19:47:25 UTC (rev 17960)
+++ trunk/blender/source/blender/src/header_info.c 2008-12-19 20:35:53 UTC (rev 17961)
@@ -1672,6 +1672,7 @@
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 @@
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)) {
Modified: trunk/blender/source/blender/src/space.c
===================================================================
--- trunk/blender/source/blender/src/space.c 2008-12-19 19:47:25 UTC (rev 17960)
+++ trunk/blender/source/blender/src/space.c 2008-12-19 20:35:53 UTC (rev 17961)
@@ -424,6 +424,9 @@
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);
More information about the Bf-blender-cvs
mailing list