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>2013-09-09 00:25:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-09 00:25:31 +0400
commit108a4c41c4ffc56db474c33bff1a8917310fca17 (patch)
tree935c3f14f517b0881949468d01ac3e4ee776163f /source/blender/render
parent5a6bcd1d42f7498a91316232f70bf2d69fb4df2a (diff)
code cleanup: warnings and redundant checks.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/rayshade.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/render/intern/source/rayshade.c b/source/blender/render/intern/source/rayshade.c
index 838f73b5e83..768fd2cdcf5 100644
--- a/source/blender/render/intern/source/rayshade.c
+++ b/source/blender/render/intern/source/rayshade.c
@@ -2317,9 +2317,7 @@ static void ray_shadow_qmc(ShadeInput *shi, LampRen *lar, const float lampco[3],
}
copy_v3_v3(isec->start, start);
- isec->dir[0] = end[0]-isec->start[0];
- isec->dir[1] = end[1]-isec->start[1];
- isec->dir[2] = end[2]-isec->start[2];
+ sub_v3_v3v3(isec->dir, end, start);
isec->dist = normalize_v3(isec->dir);
if (shi->obi->flag & R_ENV_TRANSFORMED)