Revision: 21487
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21487
Author:   aligorith
Date:     2009-07-10 14:42:17 +0200 (Fri, 10 Jul 2009)

Log Message:
-----------
NLA SoC: Attempt at solving the jumping-views problem 

The 'jumping-views' problem affected the NLA and DopeSheet editors, whereby the 
channels-list and the data-area would get out of sync (vertically) due to the 
size calculations of the two being done differently.

Modified Paths:
--------------
    
branches/soc-2009-aligorith/source/blender/editors/space_action/action_draw.c
    branches/soc-2009-aligorith/source/blender/editors/space_nla/nla_draw.c

Modified: 
branches/soc-2009-aligorith/source/blender/editors/space_action/action_draw.c
===================================================================
--- 
branches/soc-2009-aligorith/source/blender/editors/space_action/action_draw.c   
    2009-07-10 12:11:00 UTC (rev 21486)
+++ 
branches/soc-2009-aligorith/source/blender/editors/space_action/action_draw.c   
    2009-07-10 12:42:17 UTC (rev 21487)
@@ -422,6 +422,8 @@
                 */
                v2d->tot.ymin= (float)(-height);
        }
+       /* need to do a view-sync here, so that the keys area doesn't jump 
around */
+       UI_view2d_sync(NULL, ac->sa, v2d, V2D_VIEWSYNC_AREA_VERTICAL);
        
        /* loop through channels, and set up drawing depending on their type  
*/        
        y= (float)ACHANNEL_FIRST;

Modified: 
branches/soc-2009-aligorith/source/blender/editors/space_nla/nla_draw.c
===================================================================
--- branches/soc-2009-aligorith/source/blender/editors/space_nla/nla_draw.c     
2009-07-10 12:11:00 UTC (rev 21486)
+++ branches/soc-2009-aligorith/source/blender/editors/space_nla/nla_draw.c     
2009-07-10 12:42:17 UTC (rev 21487)
@@ -512,6 +512,8 @@
         * (NOTE: this is ok here, the configuration is pretty straightforward) 
         */
        v2d->tot.ymin= (float)(-height);
+       /* need to do a view-sync here, so that the strips area doesn't jump 
around */
+       UI_view2d_sync(NULL, ac->sa, v2d, V2D_VIEWSYNC_AREA_VERTICAL);
        
        /* loop through channels, and set up drawing depending on their type  
*/        
        y= (float)(-NLACHANNEL_HEIGHT);


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to