Blender Git Commit Log

Git Commits -> Revision fea5894

Revision fea5894 by Bastien Montagne (master)
November 13, 2011, 18:03 (GMT)
Moving all node angle-type values to radians. This also fixes [#29151] rotate node wrong input (mixing up radians and degrees).

Warning!

Angles in nodes have just been moved to consistant Radians values (ANGLE subtype of RNA Float property). You will still see them as degrees in the GUI, though, unless you chose otherwise in Scene properties, Units panel.

Conversion from degrees to radians for old files is obviously done at loading time, but if you use a mixed pipeline of trunk and releases, be carefull!

Loading a 2.60.4 file (or higher) into any previous version of Blender, your angles in nodes will have odd values (well, radians interpreted as degrees)!

And if you save such file in a pre-2.60.4 version, the angle node values will be converted again when loaded in Blender 2.60.4 or higher...

This affects following nodes:
* Compo: Rotate, Defocus, ChromaMatte, Glare and DirectionalBlur
* Shader: Mapping
And all future code using the TexMapping struct�??s rotation part (its rot memember is now in radians).

Commit Details:

Full Hash: fea58943ecf32daa5bd828656d5e1157e6de984a
SVN Revision: 41807
Parent Commit: c491b8b
Lines Changed: +112, -41

12 Modified Paths:

/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/texture.c (+3, -5) (Diff)
/source/blender/blenloader/intern/readfile.c (+72, -2) (Diff)
/source/blender/makesdna/DNA_node_types.h (+4, -2) (Diff)
/source/blender/makesdna/DNA_texture_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+15, -15) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_chromaMatte.c (+4, -4) (Diff)
/source/blender/nodes/composite/nodes/node_composite_defocus.c (+4, -3) (Diff)
/source/blender/nodes/composite/nodes/node_composite_directionalblur.c (+2, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_glare.c (+4, -4) (Diff)
/source/blender/nodes/composite/nodes/node_composite_rotate.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021