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:
authorThomas Dinges <blender@dingto.org>2012-05-13 20:23:17 +0400
committerThomas Dinges <blender@dingto.org>2012-05-13 20:23:17 +0400
commit3a903f7a69beb10e35f955e0d936560eeb371063 (patch)
tree54c77017b15d943e2cd7c82990edadb828042da5
parent0f43da2234c62b8fc56b415a0edde07cfdb0ee37 (diff)
* Typo fix: rna_recursiev_attr_expand -> rna_recursive_attr_expand
-rw-r--r--release/scripts/startup/bl_operators/presets.py8
1 files changed, 4 insertions, 4 deletions
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)