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/op/presets.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/op/presets.py')
-rw-r--r--release/scripts/op/presets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/op/presets.py b/release/scripts/op/presets.py
index 43e2cda5d53..4d15d94f408 100644
--- a/release/scripts/op/presets.py
+++ b/release/scripts/op/presets.py
@@ -50,7 +50,7 @@ class AddPresetBase():
if getattr(self, "save_keyconfig", False):
bpy.ops.wm.keyconfig_export(filepath=filepath, kc_name=self.properties.name)
file_preset = open(filepath, 'a')
- file_preset.write("wm.active_keyconfig = kc\n\n")
+ file_preset.write("wm.keyconfigs.active = kc\n\n")
else:
file_preset = open(filepath, 'w')
file_preset.write("import bpy\n")