[Bf-blender-cvs] [833eb86] master: Fix (harmless) assert in BVH spatial splits with Visual Studio debug builds.
Brecht Van Lommel
noreply at git.blender.org
Wed Feb 17 00:08:45 CET 2016
Commit: 833eb863ebe795b9b2589db8862b08202668c5a6
Author: Brecht Van Lommel
Date: Tue Feb 16 22:35:18 2016 +0100
Branches: master
https://developer.blender.org/rB833eb863ebe795b9b2589db8862b08202668c5a6
Fix (harmless) assert in BVH spatial splits with Visual Studio debug builds.
===================================================================
M intern/cycles/bvh/bvh_split.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh_split.cpp b/intern/cycles/bvh/bvh_split.cpp
index 534c1aa..0cd2bef 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());
}
More information about the Bf-blender-cvs
mailing list