Fix T51390: Blender 2.78c will freeze or force close when adding particles at random.
DM evaluation code was simply never clearing the `deformedOnly` flag when evaluating a generative modifier... Quite astonishing this never got catched before, a lot of particle code relies on valid value of this flag!!!
This commit is contained in:
parent
08b7955415
commit
06ca2c9d03
@ -2123,6 +2123,8 @@ static void mesh_calc_modifiers(
|
||||
DM_update_weight_mcol(ob, dm, draw_flag, NULL, 0, NULL);
|
||||
append_mask |= CD_MASK_PREVIEW_MLOOPCOL;
|
||||
}
|
||||
|
||||
dm->deformedOnly = false;
|
||||
}
|
||||
|
||||
isPrevDeform = (mti->type == eModifierTypeType_OnlyDeform);
|
||||
@ -2463,6 +2465,8 @@ static void editbmesh_calc_modifiers(
|
||||
deformedVerts = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
dm->deformedOnly = false;
|
||||
}
|
||||
|
||||
/* In case of active preview modifier, make sure preview mask remains for following modifiers. */
|
||||
|
Loading…
Reference in New Issue
Block a user