diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-07-16 16:56:23 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-07-16 16:56:23 +0400 |
commit | 062643eefd81e41bc4f396edb75ac3b21b0f17dc (patch) | |
tree | ead082112f5c60ed75f7081be901f7ca30622695 /release/scripts/textplugin_suggest.py | |
parent | cc89221a2461e289edb380922d9f53566dc2a9eb (diff) |
Fixed error when scripts were run without a visible Text to work on.
Diffstat (limited to 'release/scripts/textplugin_suggest.py')
-rw-r--r-- | release/scripts/textplugin_suggest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/textplugin_suggest.py b/release/scripts/textplugin_suggest.py index 3014aaf381f..20e248017af 100644 --- a/release/scripts/textplugin_suggest.py +++ b/release/scripts/textplugin_suggest.py @@ -33,6 +33,9 @@ def check_imports(line, c): def main(): txt = bpy.data.texts.active + if not txt: + return + (line, c) = current_line(txt) # Check we are in a normal context |