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>2011-04-01 10:14:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-01 10:14:39 +0400
commitd2a3005dd0dfc583e14e7097ac690adb0ef28bb7 (patch)
treef7457b2441936f53b7ab6b0a185729e43e6dbc1e /release
parentd4a9bc1c21b7949487a5855d4c6354f0bdc09f47 (diff)
Add back sculpt mode brush keys.
Operator for switching brushes based on type, cycling through brushes when multiple exist. This has the advantages over the old method that it doenst rely on hard coded brush names and if there are multiple brushes of the same type it cycles between them. also fix error in previous commit which broke number buttons changing brushes.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/wm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index b0e2ba053dc..ea761d958d0 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -95,7 +95,7 @@ class BRUSH_OT_active_index_set(bpy.types.Operator):
return {'CANCELLED'}
for i, brush in enumerate((cur for cur in bpy.data.brushes if getattr(cur, attr))):
- if i == self.number:
+ if i == self.index:
getattr(context.tool_settings, self.mode).brush = brush
return {'FINISHED'}