Blender Git Loki

Git Commits -> Revision 855974d

Revision 855974d by Campbell Barton (master)
August 25, 2009, 13:43 (GMT)
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)

Commit Details:

Full Hash: 855974dad931bcba8a63260d1f642da49902d569
SVN Revision: 22767
Parent Commit: 8aa6f67
Lines Changed: +145, -8

3 Modified Paths:

/source/gameengine/Ketsji/KX_Scene.cpp (+130, -1) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+9, -7) (Diff)
/source/gameengine/PyDoc/GameTypes.py (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021