diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-12 11:23:40 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-12 11:23:40 +0300 |
commit | a1033a28780bfb078c185f5ce56c153774b3e7ba (patch) | |
tree | 17d8010116f328e7b859ed8bc981f77aafeef23a /source/blender/src/sculptmode.c | |
parent | 2ffc57c49fd476f0410cd5c56e04de5ebe601fa7 (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.c | 6 |
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(); |