Revision: 26278
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26278
Author:   broken
Date:     2010-01-26 06:58:03 +0100 (Tue, 26 Jan 2010)

Log Message:
-----------
WIP commit - degree conversions for transform fcurve editing - grabbing a point 
works fine, but still 
issues with grabbing a single handle.

Using the Radians unit setting still goes fine though so you can use that for 
now.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_graph/graph_select.c
    trunk/blender/source/blender/editors/transform/transform_conversions.c
    trunk/blender/source/blender/editors/transform/transform_generics.c

Modified: trunk/blender/source/blender/editors/space_graph/graph_select.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_select.c     
2010-01-26 04:24:20 UTC (rev 26277)
+++ trunk/blender/source/blender/editors/space_graph/graph_select.c     
2010-01-26 05:58:03 UTC (rev 26278)
@@ -287,7 +287,7 @@
                        ANIM_nla_mapping_apply_fcurve(adt, ale->key_data, 1, 1);
                        
                /* unapply unit corrections */
-               ANIM_unit_mapping_apply_fcurve(ac->scene, ale->id, 
ale->key_data, 0, 1);
+               ANIM_unit_mapping_apply_fcurve(ac->scene, ale->id, 
ale->key_data, 1, 1);
        }
        
        /* cleanup */

Modified: trunk/blender/source/blender/editors/transform/transform_conversions.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_conversions.c      
2010-01-26 04:24:20 UTC (rev 26277)
+++ trunk/blender/source/blender/editors/transform/transform_conversions.c      
2010-01-26 05:58:03 UTC (rev 26278)
@@ -3495,6 +3495,8 @@
                if (fcu->bezt == NULL)
                        continue;
                
+               ANIM_unit_mapping_apply_fcurve(ac.scene, ale->id, 
ale->key_data, 0, 0);
+               
                /* only include BezTriples whose 'keyframe' occurs on the same 
side of the current frame as mouse (if applicable) */
                for (i=0, bezt= fcu->bezt; i < fcu->totvert; i++, bezt++) {
                        if (FrameOnMouseSide(side, bezt->vec[1][0], cfra)) {

Modified: trunk/blender/source/blender/editors/transform/transform_generics.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_generics.c 
2010-01-26 04:24:20 UTC (rev 26277)
+++ trunk/blender/source/blender/editors/transform/transform_generics.c 
2010-01-26 05:58:03 UTC (rev 26278)
@@ -408,17 +408,21 @@
                for (ale= anim_data.first; ale; ale= ale->next) {
                        FCurve *fcu= (FCurve *)ale->key_data;
                        
+                       ANIM_unit_mapping_apply_fcurve(ac.scene, ale->id, 
ale->key_data, 1, 0);
+                       
+                       
                        /* watch it: if the time is wrong: do not correct 
handles yet */
                        if (test_time_fcurve(fcu))
                                dosort++;
                        else
                                calchandles_fcurve(fcu);
-                               
+                       
                        /* set refresh tags for objects using this animation,
                         * BUT only if realtime updates are enabled  
                         */
                        if ((sipo->flag & SIPO_NOREALTIMEUPDATES) == 0)
                                ANIM_list_elem_update(t->scene, ale);
+
                }
                
                /* do resort and other updates? */


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to