Alright, this hopefully fixes some problems with the last transform commit.

Replaced old transform call when extruding and duplicating. Added a CTX_NOPET context flag for extrude. This is done rather a bit hackishly in Transform right now, better to do it with a on/off pet flag in TransInfo and check that everywhere instead.

Made sure transinfo Ext was initialised at NULL (I'm pretty sure it was in another spot, but LetterRip reported some crash leading me to believe that it might not be all the time. Better be safe than sorry).

Connected PET for curves uses the real distance for the fall off calculations now.
This commit is contained in:
2005-03-28 00:56:00 +00:00
parent 9f2f13aa99
commit 927425608c
8 changed files with 50 additions and 26 deletions

View File

@@ -561,7 +561,7 @@ void extrude_mesh(void)
/* individual faces? */
if(nr==2) {
Transform(TFM_SHRINKFATTEN, CTX_NONE);
Transform(TFM_SHRINKFATTEN, CTX_NOPET);
}
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_NONE);
Transform(TFM_TRANSLATION, CTX_NOPET);
}
}