Fix T58100: Crash on bpy.context.object.visible_get()
Maniphest Tasks: T58100 Differential Revision: https://developer.blender.org/D4003
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user