diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-18 17:10:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-18 17:10:09 +0300 |
commit | 3ae670fc02f9e4eadf3c92f8c8c30df81e4aaaf2 (patch) | |
tree | 0cd56059e7a2d58e59aa93d82094566245b30b16 /source/blender/editors/animation/anim_draw.c | |
parent | 4045e838dff87dc95f31d908c7ef4ab541bbe9f4 (diff) |
fix [#24786] Setting Rotation Units to Radians doesn't affect the UI [33146]
Diffstat (limited to 'source/blender/editors/animation/anim_draw.c')
-rw-r--r-- | source/blender/editors/animation/anim_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c index 7cfe180a7bf..dd27de883b3 100644 --- a/source/blender/editors/animation/anim_draw.c +++ b/source/blender/editors/animation/anim_draw.c @@ -392,7 +392,7 @@ float ANIM_unit_mapping_get_factor (Scene *scene, ID *id, FCurve *fcu, short res if (RNA_SUBTYPE_UNIT(RNA_property_subtype(prop)) == PROP_UNIT_ROTATION) { /* if the radians flag is not set, default to using degrees which need conversions */ - if ((scene) && (scene->unit.flag & USER_UNIT_ROT_RADIANS) == 0) { + if ((scene) && (scene->unit.system_rotation == USER_UNIT_ROT_RADIANS) == 0) { if (restore) return M_PI / 180.0f; /* degrees to radians */ else |