Fix T78358: random crash editing shader nodes with textures
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue