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:
authorCampbell Barton <ideasman42@gmail.com>2015-02-04 19:54:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-02-04 19:56:24 +0300
commit4339caf7cb95340dcdc7c050af46916ed1b34811 (patch)
treeb31613fc0893c3bcf05e79a2bd0d04e97283e5db /source/blender/editors/space_view3d
parent292444e3f5c2c1df45a949cca0a0be430a5ba57c (diff)
Cleanup: name flip x/y
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 49cb24f7c2c..ac1c075e8d6 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -1833,14 +1833,14 @@ static void view3d_draw_bgpic(Scene *scene, ARegion *ar, View3D *v3d,
glRotatef(RAD2DEGF(-bgpic->rotation), 0.0f, 0.0f, 1.0f);
}
- if(bgpic->flag & V3D_BGPIC_FLIP_V) {
- zoomy *= -1.0f;
- y1 = y2;
- }
- if(bgpic->flag & V3D_BGPIC_FLIP_H) {
+ if(bgpic->flag & V3D_BGPIC_FLIP_X) {
zoomx *= -1.0f;
x1 = x2;
}
+ if(bgpic->flag & V3D_BGPIC_FLIP_Y) {
+ zoomy *= -1.0f;
+ y1 = y2;
+ }
glPixelZoom(zoomx, zoomy);
glColor4f(1.0f, 1.0f, 1.0f, 1.0f - bgpic->blend);