Fix T59482: Creating 2 Particle systems breaks the app
This commit is contained in:
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue