py console wasnt working since r21743

This commit is contained in:
Campbell Barton
2009-07-21 15:52:15 +00:00
parent 0391b5ecef
commit e4b7997277

View File

@@ -144,7 +144,7 @@ class CONSOLE_OT_exec(bpy.types.Operator):
except:
return ('CANCELLED',)
if sc.type != 'PYTHON':
if sc.console_type != 'PYTHON':
return ('CANCELLED',)
namespace, console, stdout, stderr = get_console(hash(context.region))