[Bf-committers] My first 'little' patch

Matt Ebb bf-committers@blender.org
Mon, 11 Aug 2003 13:52:05 +1000


There is a bit of discussion on this patch here in the forums:
http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=1929

I'm interested in exposing the various functionality of the transform()
function through its arg.  That way, it would be nice and easy to build a
'transform' menu like in wings3d, with options for the different
local/global/normal transformations (I've mentioned this in more detail in
that thread). This would also go nicely in an updated, context-sensitive
toolbox , which has been discussed a little on bf-funboard.

I had a look at the transform() function in editobject.c, and noticed the
comment:
/* 'g' 'G' 'r' 'R' 's' 'S' 't' or 'w' 'N' */
which shows all the args, but doesn't explain what they mean (grrr). The 3D
math stuff in that function is way over my head, so I couldn't figure out
where to insert a bit of code that would automatically put it in
'transformation along the local X axis' mode (for example), depending on the
arg.

Can anyone here help/share some insights?

Thanks

Matt


----- Original Message ----- 
From: "Pol" <Pol@lix.be>
To: <bf-committers@blender.org>
Sent: Monday, August 11, 2003 5:03 AM
Subject: [Bf-committers] My first 'little' patch


> Hi all,
>
> Like some ppl here I'm learning the Blender source code and I have
> worked on that feature request:
>
>
http://projects.blender.org/tracker/index.php?func=detail&aid=438&group_id=9&atid=128
>
> And I think it works.
>
> I need some comment about the way to use cvs/patch comment in the code,
> coding style etc ... feel free to help me !
>
> Bye
>
>  -pol-
>
> PS: Just patch the file editobject.c and compile it
>