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:
authorCampbell Barton <ideasman42@gmail.com>2010-08-24 02:16:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-24 02:16:45 +0400
commitf6c323aa42e94c4750f52940b47a0d57b503c1b9 (patch)
tree486b03bf59d3e022443c8e290f354265d0126578 /release/scripts/ui/properties_data_mesh.py
parent1be4eda552aa97aa5f5fe43fd34196c57425a7c2 (diff)
- move more active properties into their collections:
scene.active_keying_set --> scene.keying_sets.active ...same for active_uv_texture. active_vertex_color, active_keyconfig, - move mesh.add_uv_layer() and mesh.add_vertex_color() into their collections also have them return the newly created layer and dont set the layer active. uvtex = mesh.uv_layers.new(name) vcol = mesh.vertex_colors.new(name)
Diffstat (limited to 'release/scripts/ui/properties_data_mesh.py')
-rw-r--r--release/scripts/ui/properties_data_mesh.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/ui/properties_data_mesh.py b/release/scripts/ui/properties_data_mesh.py
index fd184819143..986d1d2e834 100644
--- a/release/scripts/ui/properties_data_mesh.py
+++ b/release/scripts/ui/properties_data_mesh.py
@@ -272,7 +272,7 @@ class DATA_PT_uv_texture(MeshButtonsPanel, bpy.types.Panel):
col.operator("mesh.uv_texture_add", icon='ZOOMIN', text="")
col.operator("mesh.uv_texture_remove", icon='ZOOMOUT', text="")
- lay = me.active_uv_texture
+ lay = me.uv_textures.active
if lay:
layout.prop(lay, "name")
@@ -341,7 +341,7 @@ class DATA_PT_vertex_colors(MeshButtonsPanel, bpy.types.Panel):
col.operator("mesh.vertex_color_add", icon='ZOOMIN', text="")
col.operator("mesh.vertex_color_remove", icon='ZOOMOUT', text="")
- lay = me.active_vertex_color
+ lay = me.vertex_colors.active
if lay:
layout.prop(lay, "name")