Fix for yet another assert fail of particle dmcache index.
This is totally broken, just making sure Blender does not crash and devs can investigate other issues that are actually fixable.
This commit is contained in:
parent
e2471ea96a
commit
afa8a0ac19
Notes:
blender-bot
2023-02-14 09:51:50 +01:00
Referenced by issue #43976, OBJECT_OT_editmode_toggle crashes due to mismatch in context when setting `bpy.context.screen.scene` Referenced by issue #42506, Infinite Zoom
|
@ -1258,7 +1258,7 @@ static void get_particle_uvco_mcol(short from, DerivedMesh *dm, float *fuv, int
|
|||
/* get mcol */
|
||||
if (sd->mcol && ELEM(from, PART_FROM_FACE, PART_FROM_VOLUME)) {
|
||||
for (i=0; i<sd->totcol; i++) {
|
||||
if (num != DMCACHE_NOTFOUND) {
|
||||
if (!ELEM(num, DMCACHE_NOTFOUND, DMCACHE_ISCHILD)) {
|
||||
MFace *mface = dm->getTessFaceData(dm, num, CD_MFACE);
|
||||
MCol *mc = (MCol*)CustomData_get_layer_n(&dm->faceData, CD_MCOL, i);
|
||||
mc += num * 4;
|
||||
|
|
Loading…
Reference in New Issue