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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-01-18 06:22:51 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-01-18 06:22:51 +0400
commit008de305ef8f6793bf72dd14d071adc752dc1b51 (patch)
tree22622c8814891caac811a8343628d818c68963b0 /source/blender/freestyle
parent68715c5ca7c148f511ac1a8136e7590602895947 (diff)
Removed unused variable d2 and calculation of its value in GeomUtils::intersect2dSeg2dSegParametric().
It is double-checked that this is not a bug :) This fix was suggested as part of the patch set committed in revision 53887, thanks again Bastien!
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r--source/blender/freestyle/intern/geometry/GeomUtils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/geometry/GeomUtils.cpp b/source/blender/freestyle/intern/geometry/GeomUtils.cpp
index 9d449305466..c0cd9450480 100644
--- a/source/blender/freestyle/intern/geometry/GeomUtils.cpp
+++ b/source/blender/freestyle/intern/geometry/GeomUtils.cpp
@@ -185,10 +185,9 @@ intersection_test intersect2dSeg2dSegParametric(const Vec2r& p1, const Vec2r& p2
if (fabs(denom) < epsilon)
return (COLINEAR);
- real d1, d2, e1;
+ real d1, e1;
d1 = p1[1] - p3[1];
- d2 = p2[1] - p1[1];
e1 = p1[0] - p3[0];
num = -b2 * d1 - a2 * e1;