diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-25 17:43:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-25 17:43:21 +0400 |
commit | 855974dad931bcba8a63260d1f642da49902d569 (patch) | |
tree | 09f71f7f16aee22229f41e91583a1535ce701b7a /source/gameengine/Expressions/ListValue.cpp | |
parent | 8aa6f672bab266986c7d775cfb01c48d834d3ad9 (diff) |
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)
Diffstat (limited to 'source/gameengine/Expressions/ListValue.cpp')
0 files changed, 0 insertions, 0 deletions