Fix T58100: Crash on bpy.context.object.visible_get()

Maniphest Tasks: T58100

Differential Revision: https://developer.blender.org/D4003
This commit is contained in:
Philipp Oeser 2018-11-27 23:56:24 +01:00
parent 63521f57ed
commit 3aed46a6cf
Notes: blender-bot 2023-06-07 10:31:13 +02:00
Referenced by issue blender/blender-addons#58100, Crash on bpy.context.object.visible_get()
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}