Blender Git Commit Log

Git Commits -> Revision 7efc2c2

Revision 7efc2c2 by Campbell Barton (master)
November 10, 2009, 15:09 (GMT)
modify the python context access so invalid names will raise an exception rather then returning None.
this way the UI scripts are less likely to fail silently and wont let typos work ok.

also allow subclassing of the context, added a copy function,
bpy.context.copy(), returns the context as a python dict to be modified and used in python.

This also showed up an invalid brush member in the screen context.

Commit Details:

Full Hash: 7efc2c2375bb591d57f6f3d63b274de48172e43b
SVN Revision: 24450
Parent Commit: 1f2fe7e
Lines Changed: +91, -39

7 Modified Paths:

/release/scripts/modules/bpy_types.py (+11, -0) (Diff)
/source/blender/blenkernel/BKE_context.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/context.c (+36, -17) (Diff)
/source/blender/editors/screen/screen_context.c (+5, -2) (Diff)
/source/blender/editors/space_buttons/buttons_context.c (+4, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+5, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+29, -17) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021