fix [#30657] New UV layers created with Mesh.uv_textures.new reset previous ones.

adding UV's from python was resetting the active UV layer but not setting the new layer to active, resetting existing UV's.
This commit is contained in:
Campbell Barton
2012-03-26 02:39:05 +00:00
parent 94b8b8913e
commit 44010fb659
3 changed files with 16 additions and 7 deletions

View File

@@ -346,7 +346,7 @@ def xml_file_run(context, filepath, rna_map):
value = _get_context_val(context, rna_path)
if value is not Ellipsis and value is not None:
print(" loading XML: %r" % rna_path)
print(" loading XML: %r -> %r" % (filepath, rna_path))
xml2rna(xml_node, root_rna=value)