Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-05-03 11:26:38 +0400
committerJoshua Leung <aligorith@gmail.com>2007-05-03 11:26:38 +0400
commit165da403adf5d4fe61e7d5f24b1178138c9b845d (patch)
treec4943659fd3b1751ee5d1219d94f2cb90144ce0a /source/blender/src/drawipo.c
parentd508bc0a4215e87a284585ff9cab7735bb1963b1 (diff)
== IPO Editor - IPO Scaling ==
Cleanups of code for this. Just removed un-necesarry checks.
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r--source/blender/src/drawipo.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c
index aef167f2c2a..e2acee267c1 100644
--- a/source/blender/src/drawipo.c
+++ b/source/blender/src/drawipo.c
@@ -2158,10 +2158,8 @@ void drawipospace(ScrArea *sa, void *spacedata)
}
/* map ipo-points for drawing if scaled ipo */
- if (OBACT && OBACT->action && sipo->pin==0) {
- if (sipo->actname || sipo->constname) {
- actstrip_map_ipo_keys(OBACT, sipo->ipo, 0, 0);
- }
+ if (OBACT && OBACT->action && sipo->pin==0 && sipo->actname) {
+ actstrip_map_ipo_keys(OBACT, sipo->ipo, 0, 0);
}
/* draw deselect */
@@ -2175,10 +2173,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) {
- if (sipo->actname || sipo->constname) {
- actstrip_map_ipo_keys(OBACT, sipo->ipo, 1, 0);
- }
+ if (OBACT && OBACT->action && sipo->pin==0 && sipo->actname) {
+ actstrip_map_ipo_keys(OBACT, sipo->ipo, 1, 0);
}
/* Draw 'curtains' for preview */