diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-18 15:29:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-18 15:29:37 +0300 |
commit | bbc15078710a15642982bd4e72e973b1d496598c (patch) | |
tree | a845f2dd7082e9e439f2ad522e74574087fb854c /intern/cycles | |
parent | 6533d72056d1a0df85e05650f74885ae7e7d35a5 (diff) |
Fix T48848: Cycles - Camera Culling - Camera Culling removes objects which are still in frame
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/blender/blender_object.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/blender/blender_object.cpp b/intern/cycles/blender/blender_object.cpp index 80768c096e3..ede8c47efa7 100644 --- a/intern/cycles/blender/blender_object.cpp +++ b/intern/cycles/blender/blender_object.cpp @@ -253,11 +253,10 @@ static bool object_boundbox_clip(Scene *scene, boundbox[3 * i + 1], boundbox[3 * i + 2]); p = transform_point(&tfm, p); - p = transform_point(&worldtondc, p); + p = transform_perspective(&worldtondc, p); if(p.z >= -margin) { all_behind = false; } - p /= p.z; bb_min = min(bb_min, p); bb_max = max(bb_max, p); } |