diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-17 00:35:18 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-17 02:07:35 +0300 |
commit | 833eb863ebe795b9b2589db8862b08202668c5a6 (patch) | |
tree | 81d60b7ece0ef70ff87611253f2bb432a5c2d328 /intern/cycles/bvh/bvh_split.cpp | |
parent | 2f7237ac78bb70342bb1db16b4ee725d0c5dedfa (diff) |
Fix (harmless) assert in BVH spatial splits with Visual Studio debug builds.
Diffstat (limited to 'intern/cycles/bvh/bvh_split.cpp')
-rw-r--r-- | intern/cycles/bvh/bvh_split.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_split.cpp b/intern/cycles/bvh/bvh_split.cpp index 534c1aa73b5..0cd2bef2eee 100644 --- a/intern/cycles/bvh/bvh_split.cpp +++ b/intern/cycles/bvh/bvh_split.cpp @@ -245,7 +245,7 @@ void BVHSpatialSplit::split(BVHBuild *builder, BVHRange& left, BVHRange& right, } /* Insert duplicated references into actual array in one go. */ if(new_refs.size() != 0) { - refs.insert(refs.begin() + right_end - new_refs.size(), + refs.insert(refs.begin() + (right_end - new_refs.size()), new_refs.begin(), new_refs.end()); } |