diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-06-30 17:58:19 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-06-30 17:59:40 +0300 |
commit | 27783b4ac7a31b09baff0ef1bc06acdddafc6987 (patch) | |
tree | f59352aac7b7a0602197f36ef47eb8873ec4ab61 /source/blender/editors | |
parent | 26cdab02a8ca3517389468045ca84149dc20f850 (diff) |
Fix T78358: random crash editing shader nodes with textures
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_utils.c b/source/blender/editors/space_view3d/view3d_utils.c index 377e8c58ba3..15d6a43d105 100644 --- a/source/blender/editors/space_view3d/view3d_utils.c +++ b/source/blender/editors/space_view3d/view3d_utils.c @@ -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; } } |