laas/morse — pull request #26 by pierriko (2011-11-18 09:26:56+00:00)
Title: clean code, add doc, few more methods

those few changes include code cleaning, doc, and more methods

add the possibility to append objects from external .blend file in the Component class

robot = Robot('myrobot.blend')
env = Environment('/path/to/my/environment.blend')

add set_gravity to Environment
( bpy.data.scenes[0].game_settings.physics_gravity : the gravitational constant used for physics simulation in the game engine )

add "from .morsebuilder import *" in builder/__init__.py
to be able to write "from morse.builder import *" instead of "from morse.builder.morsebuilder import *" in the Morse scripts

merge the configs in the Configuration class ( accessible via the static object AbstractComponent._config )
(as it was before the hackathon, cleanner code, but we should check if breaking the former direct access to the differents config's maps is not a pb)

TODO check if scene_modifiers is AbstractComponent._config.modifier.keys()
if true, then replace and remove scene_modifiers.