Fix crash in recent commit.
Crash introduced by {rB8e00db42961297facd521139762fe8c42042fc5c}, fixed
with a null check. Object can be null.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user