From 3a903f7a69beb10e35f955e0d936560eeb371063 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sun, 13 May 2012 16:23:17 +0000 Subject: * Typo fix: rna_recursiev_attr_expand -> rna_recursive_attr_expand --- release/scripts/startup/bl_operators/presets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py index dceeae07500..564d6d7d8cf 100644 --- a/release/scripts/startup/bl_operators/presets.py +++ b/release/scripts/startup/bl_operators/presets.py @@ -94,18 +94,18 @@ class AddPresetBase(): 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 @@ class AddPresetBase(): 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) -- cgit v1.2.3