diff options
Diffstat (limited to 'source/blender/makesrna/rna_cleanup/rna_cleaner.py')
-rwxr-xr-x | source/blender/makesrna/rna_cleanup/rna_cleaner.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner.py b/source/blender/makesrna/rna_cleanup/rna_cleaner.py index 71a5a4eb611..ae17ade36d7 100755 --- a/source/blender/makesrna/rna_cleanup/rna_cleaner.py +++ b/source/blender/makesrna/rna_cleanup/rna_cleaner.py @@ -114,14 +114,17 @@ def get_props_from_txt(input_filename): done = 0 tot = 0 - for line in file_lines: + for iii, line in enumerate(file_lines): # debug #print(line) - + line_strip = line.strip() # empty line or comment - if not line.strip(): + if not line_strip: continue + + if line_strip == "EOF": + break if line.startswith("#"): line = line[1:] |