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-07-10 03:25:02 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-07-10 03:25:02 +0400
commit795034c17d76bef2a15e576ac9c70ae2268a823b (patch)
tree2db44257f626e9e17edfa08ffb39a37ea6ad454f /source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
parent5569a4b282747f693502130f143395f14e6f297d (diff)
Fix for bug #36009: Rendered ortho view messes up Freestyle lines in 3D viewport.
Clipping start is negative when the viewport preview is used with the orthographic view, while Freestyle assumes that imported mesh data are in the camera coordinate system with the view point located at origin. The present solution is to adjust the clipping start/end and introduce a Z-axis offset for mesh vertices so as to satisfy the assumption.
Diffstat (limited to 'source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h')
-rw-r--r--source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
index 494dd375be0..c505eab40f1 100644
--- a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
+++ b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
@@ -122,6 +122,7 @@ protected:
float _viewplane_bottom;
float _viewplane_top;
float _z_near, _z_far;
+ float _z_offset;
RenderMonitor *_pRenderMonitor;