Blender Git Loki

Git Commits -> Revision 14d4fec

Revision 14d4fec by Joshua Leung (master)
January 26, 2010, 03:16 (GMT)
Radians vs Degrees: The Second Attempt

F-Curves now internally store radians again instead of degrees.
- This solves problems with inconsistencies when working with drivers.
- No need to version patch old files, potentially screwing them up. As such, removed the version patching for F-Curves.
- Is better suited to optionally showing radians throughout the UI instead or degrees.

As a result, values are now converted on the fly in the Graph Editor for display and operators that operate on values. I've made the conversion system for this rather general, so that other unit type conversions can also be hooked up with the type conversion backend.

Also, made some tweaks to F-Curve RNA wrapping to make it represent the data better.

TODO:
- Transform code currently still needs to be corrected to work with these changes. Currently moving keyframes for rotation curves will make them change too rapidly vertically when using degrees.

Commit Details:

Full Hash: 14d4feca576e78d3707872bfb8b29c749bb20572
SVN Revision: 26273
Parent Commit: e6a2376
Lines Changed: +269, -298

15 Modified Paths:

/source/blender/blenkernel/intern/anim_sys.c (+0, -10) (Diff)
/source/blender/blenkernel/intern/fcurve.c (+0, -5) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -59) (Diff)
/source/blender/editors/animation/anim_draw.c (+93, -5) (Diff)
/source/blender/editors/animation/keyframing.c (+6, -9) (Diff)
/source/blender/editors/include/ED_anim_api.h (+11, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_edit.c (+2, -1) (Diff)
/source/blender/editors/space_graph/graph_draw.c (+48, -22) (Diff)
/source/blender/editors/space_graph/graph_edit.c (+40, -5) (Diff)
/source/blender/editors/space_graph/graph_select.c (+12, -0) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+0, -2) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+0, -6) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+49, -172) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021