diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-20 10:09:32 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-20 10:12:13 +0400 |
commit | f6e774552ccba0d9efe7f0c14505c8c67ba2e84c (patch) | |
tree | bbb5f0cb523d084c1b9a9cf44cd87e362d96d8ac /source/blender/freestyle | |
parent | 6c136a69b0bb097ce5f11aeee6ef6d2ba56cdf64 (diff) |
Freestyle: Fix for returned references to auto variables.
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r-- | source/blender/freestyle/intern/geometry/Polygon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/geometry/Polygon.h b/source/blender/freestyle/intern/geometry/Polygon.h index d8b891c77cc..f6dfae55d8d 100644 --- a/source/blender/freestyle/intern/geometry/Polygon.h +++ b/source/blender/freestyle/intern/geometry/Polygon.h @@ -97,14 +97,14 @@ public: max = _max; } - inline Point& getBBoxCenter() + inline Point getBBoxCenter() { Point result; result = (_min + _max) / 2; return result; } - inline Point& getCenter() + inline Point getCenter() { Point result; for (typename vector<Point>::iterator it = _vertices.begin(); it != _vertices.end(); it++) |