forked from bartvdbraak/blender
Fix hang on opening addons tab, having a .py file without bl_addon_info
would go into eternal loop.
This commit is contained in:
parent
3840b0c206
commit
0aef61caef
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user