diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-11-28 01:56:24 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-11-29 14:17:03 +0300 |
commit | 3aed46a6cf753011c8d662b837074c8de9481abc (patch) | |
tree | 14714e4a53d65d0db341ea7055ae02d61910f737 /source/blender/makesrna/intern/rna_object_api.c | |
parent | 63521f57edd2914a672665eb71d00d55cc8641a5 (diff) |
Fix T58100: Crash on bpy.context.object.visible_get()
Maniphest Tasks: T58100
Differential Revision: https://developer.blender.org/D4003
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c index 0d2e5dce496..ad375449439 100644 --- a/source/blender/makesrna/intern/rna_object_api.c +++ b/source/blender/makesrna/intern/rna_object_api.c @@ -142,7 +142,7 @@ static bool rna_Object_visible_get(Object *ob, bContext *C, ReportList *reports) return false; } - if (v3d->localvd && ((base->local_view_bits & v3d->local_view_uuid) == 0)) { + if (v3d && v3d->localvd && ((base->local_view_bits & v3d->local_view_uuid) == 0)) { return false; } |