diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-07-07 19:29:00 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-07-07 19:29:00 +0400 |
commit | 15a2287a8efeed84aa09db9e65dde36d4d1f9d0f (patch) | |
tree | 8829dc8c26af9e4129b60f991d5dfc603c02dcdc /source/blender/freestyle/intern/stroke/ContextFunctions.cpp | |
parent | bf6a74e3fc2e9b0f618012afef7aca908b2fa29d (diff) |
Fix for incorrect clipping of Freestyle strokes when the viewport preview is used.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/ContextFunctions.cpp')
-rw-r--r-- | source/blender/freestyle/intern/stroke/ContextFunctions.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/stroke/ContextFunctions.cpp b/source/blender/freestyle/intern/stroke/ContextFunctions.cpp index 42d27a0e5c3..052a6804815 100644 --- a/source/blender/freestyle/intern/stroke/ContextFunctions.cpp +++ b/source/blender/freestyle/intern/stroke/ContextFunctions.cpp @@ -51,6 +51,11 @@ unsigned GetCanvasHeightCF() return Canvas::getInstance()->height(); } +BBox<Vec2i> GetBorderCF() +{ + return Canvas::getInstance()->border(); +} + void LoadMapCF(const char *iFileName, const char *iMapName, unsigned iNbLevels, float iSigma) { return Canvas::getInstance()->loadMap(iFileName, iMapName, iNbLevels, iSigma); |