py console wasnt working since r21743
authorCampbell Barton <ideasman42@gmail.com>
Tue, 21 Jul 2009 15:52:15 +0000 (15:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 21 Jul 2009 15:52:15 +0000 (15:52 +0000)
release/ui/space_console.py

index 880cce82a27cc1883f8e1b8900e9f416ab807d75..0c495ccef8ab88f51256782448dec8349a3542e9 100644 (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))