[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46609] trunk/blender/release/scripts/ startup/bl_operators/presets.py: * Typo fix: rna_recursiev_attr_expand -> rna_recursive_attr_expand

Thomas Dinges blender at dingto.org
Sun May 13 18:23:18 CEST 2012


Revision: 46609
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46609
Author:   dingto
Date:     2012-05-13 16:23:17 +0000 (Sun, 13 May 2012)
Log Message:
-----------
* Typo fix: rna_recursiev_attr_expand -> rna_recursive_attr_expand

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/presets.py

Modified: trunk/blender/release/scripts/startup/bl_operators/presets.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/presets.py	2012-05-13 16:05:10 UTC (rev 46608)
+++ trunk/blender/release/scripts/startup/bl_operators/presets.py	2012-05-13 16:23:17 UTC (rev 46609)
@@ -94,18 +94,18 @@
                                            preset_menu_class.preset_xml_map)
                 else:
 
-                    def rna_recursiev_attr_expand(value, rna_path_step, level):
+                    def rna_recursive_attr_expand(value, rna_path_step, level):
                         if isinstance(value, bpy.types.PropertyGroup):
                             for sub_value_attr in value.bl_rna.properties.keys():
                                 if sub_value_attr == "rna_type":
                                     continue
                                 sub_value = getattr(value, sub_value_attr)
-                                rna_recursiev_attr_expand(sub_value, "%s.%s" % (rna_path_step, sub_value_attr), level)
+                                rna_recursive_attr_expand(sub_value, "%s.%s" % (rna_path_step, sub_value_attr), level)
                         elif type(value).__name__ == "bpy_prop_collection_idprop":  # could use nicer method
                             file_preset.write("%s.clear()\n" % rna_path_step)
                             for sub_value in value:
                                 file_preset.write("item_sub_%d = %s.add()\n" % (level, rna_path_step))
-                                rna_recursiev_attr_expand(sub_value, "item_sub_%d" % level, level + 1)
+                                rna_recursive_attr_expand(sub_value, "item_sub_%d" % level, level + 1)
                         else:
                             # convert thin wrapped sequences
                             # to simple lists to repr()
@@ -127,7 +127,7 @@
 
                     for rna_path in self.preset_values:
                         value = eval(rna_path)
-                        rna_recursiev_attr_expand(value, rna_path, 1)
+                        rna_recursive_attr_expand(value, rna_path, 1)
 
                             
 




More information about the Bf-blender-cvs mailing list