Go to file
Dalai Felinto 5184476fe1 bugfix: [bf-blender-Game Engine][28167] Restart game actuator don't get changed material mode
http://projects.blender.org/tracker/?func=detail&aid=28167&group_id=9&atid=306
Game Actuator (restart or load a new file) will not keep some settings alive (as
we had in 2.49).

In 2.49 the solution used was to use Blender globals (G.fileflags) to get/set
those settings. That was causing the blender file to change if you change the
material mode from the game.

In 2.5 this never worked, and the implementation was buggy (it's relying in the
scene settings, which get reset ever time we restart/load a new file).

My idea for fixing this is to create a new struct (GlobalSettings) where we
store any setting to be preserver during the course of the game. This is
specially important for options that require the game to restart/load new file
(graphic ones). But it later can be expanded to support other things such as
audio settings (e.g. volume), ...
I'm also planning to expand it for stereo and dome settings, but I prefer to
first get this committed and then build a new patch on top of that.


I had some problems in finding a correct way for build/link the blenderplayer
changes, so although it's working I'm not sure this is the best code (e.g. I
couldn't make forward declaration to work in GPG_Application.h for the struct
GlobalSettings so I ended up including KX_KetsjiEngine.h)

[note: I talked with Brecht and he find this is an ok solution. He implemented
it originally so it's good to have his go. However I still think there must be a way to make forward declaration to work. I will see with other devs if there is a better solution]
[also I'm likely renaming glsl to flags later if there are more settings stored in the flags to be used. But for now we are only handling glsl flags]
2011-09-11 05:54:07 +00:00
build_files Forgot to add FFmpeg DLLs list to linuxcross config. 2011-09-08 19:05:52 +00:00
doc added section about editmode switching to gotchas 2011-09-10 23:06:44 +00:00
extern Fixed for navmesh on FreeBSD. Oatch by sambler, thanks! 2011-09-10 14:55:14 +00:00
intern fix link issues with MinGW - a substitute declaration(correctByteOrder) for itoln that was not present in MinGW was being used. Duplicated the declaration from <winsock2.h>(tried including but gave some errors) and added the appropriate link library, wsock32, according to MinGW documentation. 2011-09-06 11:17:29 +00:00
release Navigation Mesh Modifier: 2011-09-10 09:21:46 +00:00
source bugfix: [bf-blender-Game Engine][28167] Restart game actuator don't get changed material mode 2011-09-11 05:54:07 +00:00
CMakeLists.txt patch from Uncle_Entity on IRC for fedora/collada 2011-09-08 03:57:11 +00:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile turns out recent commit made 'make' on its own fail. 2011-08-16 13:45:17 +00:00
SConstruct ups, syntax error, missing : 2011-08-25 15:18:54 +00:00