Blender Git Commit Log
Git Commits -> Revision 0c5998e
January 25, 2010, 06:24 (GMT) |
Radians -> Degrees (in UI) Rotations are now stored internally as radians, while exposing degrees in the UI - in the graph editor and UI controls. This is done in two areas: 1) Using the unit system to convert RNA data to display as degrees in the UI controls 2) FCurves now use degrees for rotation, so you can edit in the graph editor what you see in the UI. All rotation data is consistently accessible in DNA and RNA as radians, degrees are only used for the UI controls and graph editor. This commit includes conversions will convert old files (stored data and also fcurve data) to the new units, hopefully everything should go smoothly! Part of this also changes a few properties that were hard-coded as degrees before (such as IK pole angle and brush texture rotation) to also use the same consistent system of radians (dna/rna) and degrees (ui). Thanks to Joshua for hints and review here too. |
Commit Details:
Full Hash: 0c5998e7998cba70d1dceacc5ed8109a5bba9e23
SVN Revision: 26235
Parent Commit: c94f385
Lines Changed: +435, -81
15 Modified Paths:
/source/blender/blenkernel/intern/anim_sys.c (+10, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+1, -9) (Diff)
/source/blender/blenkernel/intern/unit.c (+23, -14) (Diff)
/source/blender/blenloader/intern/readfile.c (+86, -1) (Diff)
/source/blender/editors/animation/keyframing.c (+9, -0) (Diff)
/source/blender/editors/interface/interface.c (+14, -8) (Diff)
/source/blender/editors/interface/interface_regions.c (+10, -0) (Diff)
/source/blender/ikplugin/intern/iksolver_plugin.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+2, -16) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+10, -8) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+0, -12) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+258, -2) (Diff)
/source/blender/makesrna/intern/rna_pose.c (+6, -6) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+1, -3) (Diff)
/source/blender/blenkernel/intern/constraint.c (+1, -9) (Diff)
/source/blender/blenkernel/intern/unit.c (+23, -14) (Diff)
/source/blender/blenloader/intern/readfile.c (+86, -1) (Diff)
/source/blender/editors/animation/keyframing.c (+9, -0) (Diff)
/source/blender/editors/interface/interface.c (+14, -8) (Diff)
/source/blender/editors/interface/interface_regions.c (+10, -0) (Diff)
/source/blender/ikplugin/intern/iksolver_plugin.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+2, -16) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+10, -8) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+0, -12) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+258, -2) (Diff)
/source/blender/makesrna/intern/rna_pose.c (+6, -6) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+1, -3) (Diff)