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