bugfix for python console getting its namespace cleared after the first command was executed.

This commit is contained in:
Campbell Barton 2010-08-03 02:10:28 +00:00
parent 66f32bd7f9
commit c475f38239

@ -47,6 +47,7 @@ def get_console(console_id):
if consoles is None:
consoles = get_console.consoles = {}
get_console.consoles_namespace_hash = hash(bpy.context.manager)
else:
# check if clearning the namespace is needed to avoid a memory leak.
# the window manager is normally loaded with new blend files