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
path: root/source
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2008-01-13 00:59:18 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2008-01-13 00:59:18 +0300
commitf1ff291ad13215797bdb40246f543c0b752176f1 (patch)
treeea2efdef8d645de396997135f18fe2b7d73a40c2 /source
parent800d4de5d6368c9571f5e70924f9161eca266287 (diff)
== Sculpt ==
Added undo pushes after changing the brush type using the CTRL+TAB menu and after interactive change of brush size/strength/rotate.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/sculptmode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c
index f3bfb645315..a1341fd60c3 100644
--- a/source/blender/src/sculptmode.c
+++ b/source/blender/src/sculptmode.c
@@ -1311,6 +1311,8 @@ void sculptmode_propset_end(SculptSession *ss, int cancel)
sculptmode_brush()->strength= pd->origstrength;
if(pd->mode != PropsetTexRot)
set_tex_angle(pd->origtexrot);
+
+ BIF_undo_push("Brush property set");
}
glDeleteTextures(1, &pd->tex);
MEM_freeN(pd->num);
@@ -1480,6 +1482,8 @@ void sculptmode_selectbrush_menu(void)
if(val>0) {
sd->brush_type= val;
+
+ BIF_undo_push("Brush type");
allqueue(REDRAWVIEW3D, 1);
allqueue(REDRAWBUTSEDIT, 1);