Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-06-30 17:58:19 +0300
committerJeroen Bakker <jeroen@blender.org>2020-07-29 11:02:01 +0300
commitc8d0a615efcb8398ae6e8f90ba09e9567dd750fd (patch)
tree3b07e548934556bf8b3636ab49d2c2285cdbcda5
parent3f23de9a3fc5cd78174237fb0b5a433032a8042c (diff)
Fix T78358: random crash editing shader nodes with textures
-rw-r--r--source/blender/editors/space_view3d/view3d_utils.c2
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;
}
}