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>2010-03-24 19:20:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-24 19:20:13 +0300
commit8456995181a22ec0ba2a0dc55588c4646423f57b (patch)
tree1252908045b293db975a552f163b0be21340b72f /source/blender/blenkernel
parent6f724c54bcbb9fc0408a6191a8031c278086416d (diff)
xaspect and yaspect were not working with uv project modifier & panorama, also removed some includes.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/modifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c
index 8739a9c8b48..7be0cb3e3ed 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -3690,8 +3690,8 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd,
int num_projectors = 0;
float aspect;
char uvname[32];
- float aspx= umd->aspectx ? 1.0f : umd->aspectx;
- float aspy= umd->aspecty ? 1.0f : umd->aspecty;
+ float aspx= umd->aspectx ? umd->aspectx : 1.0f;
+ float aspy= umd->aspecty ? umd->aspecty : 1.0f;
int free_uci= 0;
aspect = aspx / aspy;