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:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-01-12 11:23:40 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2007-01-12 11:23:40 +0300
commita1033a28780bfb078c185f5ce56c153774b3e7ba (patch)
tree17d8010116f328e7b859ed8bc981f77aafeef23a /source/blender/src/sculptmode.c
parent2ffc57c49fd476f0410cd5c56e04de5ebe601fa7 (diff)
Added warning for if user attempts to sculpt on a shapekey without turning on the lock (doesn't make sense to sculpt on an interpolated shapekey.)
Diffstat (limited to 'source/blender/src/sculptmode.c')
-rw-r--r--source/blender/src/sculptmode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c
index 161dcf613d3..a9d1e02885c 100644
--- a/source/blender/src/sculptmode.c
+++ b/source/blender/src/sculptmode.c
@@ -1851,6 +1851,12 @@ void sculpt()
return;
if(!(ob->lay & G.vd->lay))
error("Active object is not in this layer");
+ if(ob_get_keyblock(ob)) {
+ if(!(ob->shapeflag & OB_SHAPE_LOCK)) {
+ error("Cannot sculpt on unlocked shape key");
+ return;
+ }
+ }
if(!ss) {
sculpt_init_session();