Fixed an almost one-decade long annoyance: Text objects with "TextOnCurve"
now scale correctly. Formerly, they just used to scale away from the curve into nirwana. Now, they nicely follow the curve while scaling. Both the curve and the text objects themselves can be scaled. This will of course break compatibility with files that used this "bug". Acceptable? I guess :-)
This commit is contained in:
@@ -937,9 +937,12 @@ struct chartrans *text_to_curve(Object *ob, int mode)
|
||||
|
||||
if(cucu->path==NULL) makeDispListCurveTypes(cu->textoncurve, 0);
|
||||
if(cucu->path) {
|
||||
|
||||
float imat[4][4], imat3[3][3];
|
||||
Mat4Invert(imat, ob->obmat);
|
||||
Mat3CpyMat4(imat3, imat);
|
||||
|
||||
Mat3CpyMat4(cmat, cu->textoncurve->obmat);
|
||||
Mat3MulMat3(cmat, cmat, imat3);
|
||||
sizefac= Normalise(cmat[0])/cu->fsize;
|
||||
|
||||
minx=miny= 1.0e20f;
|
||||
|
||||
Reference in New Issue
Block a user