Fix T59482: Creating 2 Particle systems breaks the app

This commit is contained in:
Clément Foucault 2019-01-14 18:48:21 +01:00
parent 84c06e996a
commit 21fedfbca0
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #59482, Creating 2 Particle systems breaks the app
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ static DRWShadingGroup *drw_shgroup_create_hair_procedural_ex(
}
}
if (dupli_parent) {
if ((dupli_parent != NULL) && (dupli_object != NULL)) {
DRWHairInstanceData *hair_inst_data = (DRWHairInstanceData *)DRW_drawdata_ensure(
&object->id, (DrawEngineType *)&drw_shgroup_create_hair_procedural_ex,
sizeof(DRWHairInstanceData), NULL, NULL);