Commit: 3aed46a6cf753011c8d662b837074c8de9481abc Author: Philipp Oeser Date: Tue Nov 27 23:56:24 2018 +0100 Branches: blender2.8 https://developer.blender.org/rB3aed46a6cf753011c8d662b837074c8de9481abc
Fix T58100: Crash on bpy.context.object.visible_get() Maniphest Tasks: T58100 Differential Revision: https://developer.blender.org/D4003 =================================================================== M source/blender/makesrna/intern/rna_object_api.c =================================================================== 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; } _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
