== Action/IPO Editors - Code Cleanup ==
[blender-staging.git] / source / blender / src / drawipo.c
index e2acee267c1524cc787972e26d2391613743cdd5..633d1b1ee313e626a8a4a582434f47f651fa4783 100644 (file)
@@ -2158,9 +2158,8 @@ void drawipospace(ScrArea *sa, void *spacedata)
                }
                
                /* map ipo-points for drawing if scaled ipo */
-               if (OBACT && OBACT->action && sipo->pin==0 && sipo->actname) {
+               if (NLA_IPO_SCALED)
                        actstrip_map_ipo_keys(OBACT, sipo->ipo, 0, 0);
-               }
 
                /* draw deselect */
                draw_ipocurves(0);
@@ -2173,9 +2172,8 @@ void drawipospace(ScrArea *sa, void *spacedata)
                draw_ipovertices(1);
                
                /* undo mapping of ipo-points for drawing if scaled ipo */
-               if (OBACT && OBACT->action && sipo->pin==0 && sipo->actname) {
+               if (NLA_IPO_SCALED)
                        actstrip_map_ipo_keys(OBACT, sipo->ipo, 1, 0);
-               }
                
                /* Draw 'curtains' for preview */
                draw_anim_preview_timespace();