merged rna names with newly created dump from rna_info.py
[blender.git] / source / blender / makesrna / rna_cleanup / rna_cleaner_merge.py
index 9fcaa8be3f82d0c54136bab4a32f48315fd6dcf4..90b8f021d01fc80b6190d7a8a214dba055fb626d 100755 (executable)
@@ -9,7 +9,7 @@ Example usage:
 def main():
        
        def work_line_id(line):
-               return line[2], line[3] # class/from
+               return line[2].split("|")[-1], line[3] # class/from
        
        
        if not (sys.argv[-1].endswith(".py") and sys.argv[-2].endswith(".py")):
@@ -31,6 +31,12 @@ def main():
                except:
                        # print("not found", key)
                        val = val_orig
+                       
+               # always take the class from the base
+               val = list(val)
+               val[2] = val_orig[2]
+               print(val_orig[2])
+               val = tuple(val)
 
                rna_api_new.append(val)
        
@@ -53,4 +59,4 @@ def main():
                print("Warning '%s' contains lost %d items from module %s.py" % (file_path, len(mod_from_dict), mod_from.__name__))
 
 if __name__ == "__main__":
-       main()
\ No newline at end of file
+       main()