[Bf-blender-cvs] [3aed46a6cf7] blender2.8: Fix T58100: Crash on bpy.context.object.visible_get()
Philipp Oeser
noreply at git.blender.org
Thu Nov 29 12:19:20 CET 2018
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;
}
More information about the Bf-blender-cvs
mailing list