Revision: 18094
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18094
Author:   aligorith
Date:     2008-12-27 06:24:03 +0100 (Sat, 27 Dec 2008)

Log Message:
-----------
2.5 - Assorted comments, and made the default size of the Action Editor more 
sensible.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/animation/anim_draw.c
    branches/blender2.5/blender/source/blender/editors/animation/anim_ops.c
    
branches/blender2.5/blender/source/blender/editors/space_action/space_action.c

Modified: 
branches/blender2.5/blender/source/blender/editors/animation/anim_draw.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/animation/anim_draw.c    
2008-12-27 04:55:45 UTC (rev 18093)
+++ branches/blender2.5/blender/source/blender/editors/animation/anim_draw.c    
2008-12-27 05:24:03 UTC (rev 18094)
@@ -153,6 +153,7 @@
 
 /* *************************************************** */
 /* PREVIEW RANGE 'CURTAINS' */
+/* Note: 'Preview Range' tools are defined in anim_ops.c */
 
 /* Draw preview range 'curtains' for highlighting where the animation data is 
*/
 void ANIM_draw_previewrange (const bContext *C, View2D *v2d)

Modified: 
branches/blender2.5/blender/source/blender/editors/animation/anim_ops.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/animation/anim_ops.c     
2008-12-27 04:55:45 UTC (rev 18093)
+++ branches/blender2.5/blender/source/blender/editors/animation/anim_ops.c     
2008-12-27 05:24:03 UTC (rev 18094)
@@ -247,8 +247,6 @@
        scene->r.psfra= (int)floor(sfra + 0.5f);
        scene->r.pefra= (int)floor(efra + 0.5f);
        
-       //BIF_undo_push("Set Preview Range");
-       
        return OPERATOR_FINISHED;
 } 
 

Modified: 
branches/blender2.5/blender/source/blender/editors/space_action/space_action.c
===================================================================
--- 
branches/blender2.5/blender/source/blender/editors/space_action/space_action.c  
    2008-12-27 04:55:45 UTC (rev 18093)
+++ 
branches/blender2.5/blender/source/blender/editors/space_action/space_action.c  
    2008-12-27 05:24:03 UTC (rev 18094)
@@ -68,8 +68,9 @@
 
 static SpaceLink *action_new(const bContext *C)
 {
+       ScrArea *sa= CTX_wm_area(C);
+       SpaceAction *saction;
        ARegion *ar;
-       SpaceAction *saction;
        
        saction= MEM_callocN(sizeof(SpaceAction), "initaction");
        saction->spacetype= SPACE_ACTION;
@@ -100,12 +101,12 @@
        ar->regiontype= RGN_TYPE_WINDOW;
        
        ar->v2d.tot.xmin= -2.0f;
-       ar->v2d.tot.ymin= -2000.0f;
+       ar->v2d.tot.ymin= (float)(-sa->winy);
        ar->v2d.tot.xmax= 100.0f;
        ar->v2d.tot.ymax= 0.0f;
        
        ar->v2d.cur.xmin= -2.0f;
-       ar->v2d.cur.ymin= -2000.0f; /* ideally this would be the size of the 
region */
+       ar->v2d.cur.ymin= (float)(-sa->winy);
        ar->v2d.cur.xmax= 100.0f;
        ar->v2d.cur.ymax= 0.0f;
        


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

Reply via email to