Blender Git Loki

Git Commits -> Revision ef665b3

Revision ef665b3 by Campbell Barton (master)
December 19, 2012, 07:27 (GMT)
dissallow access to the context while addons import and register.
Since the window manager is needed for keymaps this is kept as an exception.

some addons will need updating, but in every case I've seen addons should not be accessing the context while registering.
(bad stuff! - declaring the scene as a global variable - which crashes when the users loads a new file, manipulating the active object or scene... tsk tsk)

Commit Details:

Full Hash: ef665b3d1899669ca680400bbb0045706d784f2a
SVN Revision: 53161
Parent Commit: 5837c7f
Lines Changed: +26, -9

2 Modified Paths:

/release/scripts/modules/addon_utils.py (+22, -4) (Diff)
/release/scripts/modules/bpy/utils.py (+4, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021