diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-04 19:52:59 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-04 19:52:59 +0400 |
commit | 0aef61caef5c7f10eeca8870ee11e80a8cd10c1b (patch) | |
tree | a6c73c7a6aa8b4427abb6b033648c3db4a87c0df | |
parent | 3840b0c206d02d32a221cb0d53b3339eb73ecb57 (diff) |
Fix hang on opening addons tab, having a .py file without bl_addon_info
would go into eternal loop.
-rw-r--r-- | release/scripts/ui/space_userpref.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 9d20bc70657..9cdf6ca2809 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -853,6 +853,8 @@ class USERPREF_PT_addons(bpy.types.Panel): l = "" while not l.startswith("bl_addon_info"): l = line_iter.readline() + if len(l) == 0: + break while l.rstrip(): lines.append(l) l = line_iter.readline() |