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_merge.py')
-rwxr-xr-xsource/blender/makesrna/rna_cleanup/rna_cleaner_merge.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py b/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py
index 90b8f021d01..8d2fe07b774 100755
--- a/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py
+++ b/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py
@@ -27,17 +27,16 @@ def main():
for key, val_orig in mod_to_dict.items():
try:
- val = mod_from_dict.pop(key)
+ val_new = mod_from_dict.pop(key)
except:
# print("not found", key)
- val = val_orig
+ val_new = val_orig
# always take the class from the base
- val = list(val)
- val[2] = val_orig[2]
- print(val_orig[2])
+ val = list(val_orig)
+ val[0] = val_new[0] # comment
+ val[4] = val_new[4] # -> to
val = tuple(val)
-
rna_api_new.append(val)
def write_work_file(file_path, rna_api):