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.
This commit is contained in:
2005-04-04 02:16:56 +00:00
parent 7b0a661413
commit fad97122aa
8 changed files with 21 additions and 15 deletions

View File

@@ -561,7 +561,7 @@ void extrude_mesh(void)
/* individual faces? */
if(nr==2) {
Transform(TFM_SHRINKFATTEN, CTX_NOPET);
Transform(TFM_SHRINKFATTEN, CTX_NO_PET|CTX_NO_NOR_RECALC);
}
else {
if(transmode=='n') {
@@ -569,7 +569,7 @@ void extrude_mesh(void)
VecSubf(nor, nor, G.obedit->obmat[3]);
BIF_setSingleAxisConstraint(nor, NULL);
}
Transform(TFM_TRANSLATION, CTX_NOPET);
Transform(TFM_TRANSLATION, CTX_NO_PET);
}
}