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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user