[Bf-blender-cvs] [60ad7c0] temp_display_optimization: Temporarily fix crash until subsurf textured multi material is completely supported.
Antony Riakiotakis
noreply at git.blender.org
Mon Jun 29 19:33:03 CEST 2015
Commit: 60ad7c09c11406b13194971d329b18e540501376
Author: Antony Riakiotakis
Date: Mon Jun 29 19:32:26 2015 +0200
Branches: temp_display_optimization
https://developer.blender.org/rB60ad7c09c11406b13194971d329b18e540501376
Temporarily fix crash until subsurf textured multi material is
completely supported.
===================================================================
M source/blender/blenkernel/intern/subsurf_ccg.c
===================================================================
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c
index 6e8a907..696fd1a 100644
--- a/source/blender/blenkernel/intern/subsurf_ccg.c
+++ b/source/blender/blenkernel/intern/subsurf_ccg.c
@@ -2120,6 +2120,7 @@ static GPUDrawObject *ccgDM_GPUObjectNew(DerivedMesh *dm) {
gdo->materials[curmat].totelements = matinfo[i].elements;
gdo->materials[curmat].totloops = matinfo[i].loops;
gdo->materials[curmat].mat_nr = i;
+ gdo->materials[curmat].polys = NULL;
curelement += matinfo[i].elements;
curmat++;
More information about the Bf-blender-cvs
mailing list