[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24580] trunk/blender/source: bge: fix for "dome mode not working with Letterboxing".

Dalai Felinto dfelinto at gmail.com
Mon Nov 16 03:52:04 CET 2009


Revision: 24580
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24580
Author:   dfelinto
Date:     2009-11-16 03:52:02 +0100 (Mon, 16 Nov 2009)

Log Message:
-----------
bge: fix for "dome mode not working with Letterboxing".
This bug was introduced after commit # 24102 (BGE: when letterbox is enabled use the camera framing as a clipping area) reported in IRC by Pete Carss (domejunky)

*) an extra stub fix for recent commit. By the way: we want to have blenderplayer running in blender 2.5 beta0. Therefore if you are doing big changes in the last minutes (Friday, Saturday??) It would help a lot if you could enable blenderplayer in your builds. links problems are really easy to fix)

**) an typo I spotted in recent mesh dynamic load in bge.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_view.c
    trunk/blender/source/blenderplayer/bad_level_call_stubs/stubs.c
    trunk/blender/source/gameengine/Converter/KX_BlenderSceneConverter.cpp

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_view.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_view.c	2009-11-16 00:44:07 UTC (rev 24579)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_view.c	2009-11-16 02:52:02 UTC (rev 24580)
@@ -1610,7 +1610,7 @@
 	
 	game_set_commmandline_options(&startscene->gm);
 
-	if(rv3d->persp==RV3D_CAMOB && startscene->gm.framing.type == SCE_GAMEFRAMING_BARS) { /* Letterbox */
+	if(rv3d->persp==RV3D_CAMOB && startscene->gm.framing.type == SCE_GAMEFRAMING_BARS && startscene->gm.stereoflag != STEREO_DOME) { /* Letterbox */
 		rctf cam_framef;
 		calc_viewborder(startscene, ar, CTX_wm_view3d(C), &cam_framef);
 		cam_frame.xmin = cam_framef.xmin + ar->winrct.xmin;

Modified: trunk/blender/source/blenderplayer/bad_level_call_stubs/stubs.c
===================================================================
--- trunk/blender/source/blenderplayer/bad_level_call_stubs/stubs.c	2009-11-16 00:44:07 UTC (rev 24579)
+++ trunk/blender/source/blenderplayer/bad_level_call_stubs/stubs.c	2009-11-16 02:52:02 UTC (rev 24580)
@@ -108,9 +108,9 @@
 struct wmKeyConfig *WM_keyconfig_add(struct wmWindowManager *wm, char *idname){return (struct wmKeyConfig *) NULL;}
 void WM_keymap_remove_item(struct wmKeyMap *keymap, struct wmKeyMapItem *kmi){}
 void WM_keymap_restore_to_default(struct wmKeyMap *keymap){}
+int WM_keymap_user_init(struct wmWindowManager *wm, struct wmKeyMap *keymap) {return 0;}
 
 
-
 /* rna editors */
 short ANIM_add_driver(struct ID *id, const char rna_path[], int array_index, short flag, int type){return 0;}
 void ED_space_image_release_buffer(struct SpaceImage *sima, void *lock){}
@@ -270,11 +270,10 @@
 int CSG_OutputFaceDescriptor(struct CSG_BooleanOperation * operation, struct CSG_FaceIteratorDescriptor * output){return 0;}
 int CSG_OutputVertexDescriptor(struct CSG_BooleanOperation * operation, struct CSG_VertexIteratorDescriptor *output){return 0;}
 
+typedef struct CSG_VertexIteratorDescriptor {int a;} CSG_VertexIteratorDescriptor; //workaround to build CSG_PerformanceBoolean Operation
+typedef struct CSG_FaceIteratorDescriptor {int a;} CSG_FaceIteratorDescriptor; //workaround to build CSG_PerformanceBoolean Operation
+typedef struct CSG_OperationType {int a;} CSG_OperationType; //workaround to build CSG_PerformanceBoolean Operation
 
-typedef struct CSG_VertexIteratorDescriptor {int a;} CSG_VertexIteratorDescriptor; 
-typedef struct CSG_FaceIteratorDescriptor {int a;} CSG_FaceIteratorDescriptor;
-typedef struct CSG_OperationType {int a;} CSG_OperationType;
-
 int CSG_PerformBooleanOperation(
 	struct CSG_BooleanOperation			*operation,
 	CSG_OperationType				op_type,

Modified: trunk/blender/source/gameengine/Converter/KX_BlenderSceneConverter.cpp
===================================================================
--- trunk/blender/source/gameengine/Converter/KX_BlenderSceneConverter.cpp	2009-11-16 00:44:07 UTC (rev 24579)
+++ trunk/blender/source/gameengine/Converter/KX_BlenderSceneConverter.cpp	2009-11-16 02:52:02 UTC (rev 24580)
@@ -999,7 +999,7 @@
 	}
 	
 	if(GetMainDynamicPath(path)) {
-		snprintf(err_local, sizeof(err_local), "blend file alredy open \"%s\"\n", path);
+		snprintf(err_local, sizeof(err_local), "blend file already open \"%s\"\n", path);
 		*err_str= err_local;
 		return false;
 	}





More information about the Bf-blender-cvs mailing list