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:
authorMartin Poirier <theeth@yahoo.com>2005-04-04 06:16:56 +0400
committerMartin Poirier <theeth@yahoo.com>2005-04-04 06:16:56 +0400
commitfad97122aa908b7e95f35b829a61438efce18c91 (patch)
tree8f6e57f150c6a65f5708b7526cf6ec1cbd01480e /source/blender/src/transform.c
parent7b0a661413cd32a575ba9effe7b3105b0b9b8654 (diff)
Added a NO_NOR_RECALC context flag. With Individual extrude, the normals are already set by the extrude code, recalculating breaks them.
Cosmetic changes, renamed CTX_NOPET to CTX_NO_PET CKey during transform now clears the constraint.
Diffstat (limited to 'source/blender/src/transform.c')
-rwxr-xr-xsource/blender/src/transform.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index 23f4774b3ac..2c3c2fa5c1b 100755
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -1426,7 +1426,8 @@ static void createTransData(TransInfo *t)
else if (G.obedit) {
t->ext = NULL;
if (G.obedit->type == OB_MESH) {
- if(t->mode==TFM_SHRINKFATTEN) vertexnormals(0);
+ if(t->mode==TFM_SHRINKFATTEN && (t->context & CTX_NO_NOR_RECALC)==0)
+ vertexnormals(0);
createTransEditVerts(t);
}
else if ELEM(G.obedit->type, OB_CURVE, OB_SURF) {
@@ -1655,6 +1656,10 @@ void Transform(int mode, int context)
}
Trans.redraw = 1;
break;
+ case CKEY:
+ stopConstraint(&Trans);
+ Trans.redraw = 1;
+ break;
case XKEY:
if ((Trans.flag & T_NO_CONSTRAINT)==0) {
if (cmode == 'X') {