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:
authorAntony Riakiotakis <kalast@gmail.com>2015-07-24 17:28:18 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-07-24 17:28:38 +0300
commitdc80ff9b56df7a509b62031f9e638347072ab927 (patch)
tree3254fbc4b3035031957f89d66be80096e3581d51 /source/blender/blenkernel/intern/pbvh.c
parenta028575c4a613b5d87ec26434f8c846c60861cfe (diff)
Fix T45541 crash when mixing flat and smooth shaded faces in sculpt
mode. Issue from looptri merge.
Diffstat (limited to 'source/blender/blenkernel/intern/pbvh.c')
-rw-r--r--source/blender/blenkernel/intern/pbvh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index 9ec9f2fef6c..e6579a3d56f 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -209,7 +209,7 @@ static int partition_indices_material(PBVH *bvh, int lo, int hi)
int i = lo, j = hi;
if (bvh->looptri)
- first = &looptri[bvh->prim_indices[lo]];
+ first = &mpoly[looptri[bvh->prim_indices[lo]].poly];
else
first = &flagmats[bvh->prim_indices[lo]];