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_imports.py | |
parent | cc89221a2461e289edb380922d9f53566dc2a9eb (diff) |
Fixed error when scripts were run without a visible Text to work on.
Diffstat (limited to 'release/scripts/textplugin_imports.py')
-rw-r--r-- | release/scripts/textplugin_imports.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/textplugin_imports.py b/release/scripts/textplugin_imports.py index 978efeb2c49..2186adf5c73 100644 --- a/release/scripts/textplugin_imports.py +++ b/release/scripts/textplugin_imports.py @@ -18,6 +18,9 @@ except ImportError: def main(): txt = bpy.data.texts.active + if not txt: + return + line, c = current_line(txt) # Check we are in a normal context |