Fix T78358: random crash editing shader nodes with textures

This commit is contained in:
Brecht Van Lommel 2020-06-30 16:58:19 +02:00 committed by Jeroen Bakker
parent 3f23de9a3f
commit c8d0a615ef
Notes: blender-bot 2023-06-21 19:23:24 +02:00
Referenced by issue #78358, Crash while modifying shader nodes
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ bool ED_view3d_has_workbench_in_texture_color(const Scene *scene,
if (v3d->shading.color_type == V3D_SHADING_TEXTURE_COLOR) {
return true;
}
if (ob->mode == OB_MODE_TEXTURE_PAINT) {
if (ob && ob->mode == OB_MODE_TEXTURE_PAINT) {
return true;
}
}