Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesrna/rna_cleanup/rna_cleaner.py')
-rwxr-xr-xsource/blender/makesrna/rna_cleanup/rna_cleaner.py9
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:]