patch from Mitchell Stokes adding dictionary like access to a scene. (like KX_GameObj...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 25 Aug 2009 13:43:21 +0000 (13:43 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 25 Aug 2009 13:43:21 +0000 (13:43 +0000)
commit855974dad931bcba8a63260d1f642da49902d569
tree09f71f7f16aee22229f41e91583a1535ce701b7a
parent8aa6f672bab266986c7d775cfb01c48d834d3ad9
patch from Mitchell Stokes adding dictionary like access to a scene. (like KX_GameObjects have)

val = scene["prop"]
scene["prop"] = newval
if "prop" in scene: ...
val = scene.get("prop", fallback_val)
source/gameengine/Ketsji/KX_Scene.cpp
source/gameengine/Ketsji/KX_Scene.h
source/gameengine/PyDoc/GameTypes.py