Fix crash in recent commit.

Crash introduced by {rB8e00db42961297facd521139762fe8c42042fc5c}, fixed
with a null check. Object can be null.
This commit is contained in:
Jeroen Bakker
2021-08-31 13:13:19 +02:00
parent b0cb0a7854
commit a7ee49d065

View File

@@ -57,7 +57,7 @@ static bool paint_object_is_rendered_transparent(View3D *v3d, Object *ob)
}
/* Check object display types. */
if (ELEM(ob->dt, OB_WIRE, OB_BOUNDBOX)) {
if (ob && ELEM(ob->dt, OB_WIRE, OB_BOUNDBOX)) {
return true;
}