From 833eb863ebe795b9b2589db8862b08202668c5a6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 16 Feb 2016 22:35:18 +0100 Subject: [PATCH] Fix (harmless) assert in BVH spatial splits with Visual Studio debug builds. --- intern/cycles/bvh/bvh_split.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }