[Bf-committers] New Rot Scale Pivot mode-

Alexander Ewering bf-committers@blender.org
Fri, 2 Jul 2004 14:14:34 +0200 (CEST)


Quickly hacked it into instinctive-blender, really great feature idea.

For the others here, the relevant code is in transform(). To activate the
new mode for scaling, just remove (put in an if (){}) the following code
block:

                    /* apply */
                    tob= transmain;
                    tv= transvmain;
                    
                    for(a=0; a<tottrans; a++, tob++, tv++) {
                        if(transmain) {
                            /* size moet lokaal t.o.v. ouder EN van eigen
rotatie */
                            /* lokaal tov. ouder: */                                

------------------ FOLLOWING CODE GETS SKIPPED ----------------------

-------------------------- UNTIL HERE: ------------------------------

                            if(G.vd->around!=V3D_LOCAL && !G.obpose) {
                                /* translatie */
                                VecSubf(vec, tob->obvec, centre);
                                Mat3MulVecfl(mat, vec);
                                VecAddf(vec, vec, centre);
                                /* vec is nu de plek waar het object moet
komen */



| alexander ewering               instinctive new media
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de