Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-03 06:10:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-03 06:10:28 +0400
commitc475f382395d1556fc0fb80c709f7dc08c97eb10 (patch)
tree4340da5efdf50577f2ae20ce07b902a54eae2186
parent66f32bd7f9191702d561ff6995363d9a98084772 (diff)
bugfix for python console getting its namespace cleared after the first command was executed.
-rw-r--r--release/scripts/op/console_python.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/op/console_python.py b/release/scripts/op/console_python.py
index 70b24ddf2fa..8c7f543db36 100644
--- a/release/scripts/op/console_python.py
+++ b/release/scripts/op/console_python.py
@@ -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