[Bf-committers] New Rot Scale Pivot mode-
Campbell Barton
bf-committers@blender.org
Fri, 02 Jul 2004 22:36:19 +1000
If I get some time Ill commit this to tuhopuu :-)
- Cam
Alexander Ewering wrote:
>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
>
>_______________________________________________
>Bf-committers mailing list
>Bf-committers@blender.org
>http://www.blender.org/mailman/listinfo/bf-committers
>
>
>
>
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton@metavr.com
phone: AU (03) 5229 0241