diff options
Diffstat (limited to 'release/scripts/modules/rna_xml.py')
-rw-r--r-- | release/scripts/modules/rna_xml.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py index 634c74178fa..c39d904bf08 100644 --- a/release/scripts/modules/rna_xml.py +++ b/release/scripts/modules/rna_xml.py @@ -141,7 +141,7 @@ def rna2xml(fw=print_ln, return number_to_str(s, subsubvalue_type) else: return " ".join([str_recursive(si) for si in s]) - + array_value = " ".join(str_recursive(v) for v in subvalue_rna) node_attrs.append("%s=\"%s\"" % (prop, array_value)) @@ -308,13 +308,13 @@ def xml2rna(root_xml, rna2xml_node(root_xml, root_rna) - # ----------------------------------------------------------------------------- # Utility function used by presets. # The idea is you can run a preset like a script with a few args. # # This roughly matches the operator 'bpy.ops.script.python_file_run' + def _get_context_val(context, path): path_full = "context." + path try: @@ -328,6 +328,7 @@ def _get_context_val(context, path): return value + def xml_file_run(context, filepath, rna_map): import xml.dom.minidom |