Commit: 2a7f2287e6dda95454daf83061aa88b5f437cde1
Author: Dalai Felinto
Date:   Thu Sep 11 11:14:43 2014 +0200
Branches: multiview
https://developer.blender.org/rB2a7f2287e6dda95454daf83061aa88b5f437cde1

Fix crashes when for stereo3d_format update where there is no id

===================================================================

M       source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c 
b/source/blender/makesrna/intern/rna_scene.c
index cbd8975..95e8a7a 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1831,7 +1831,7 @@ static void rna_Stereo3dFormat_update(Main 
*UNUSED(bmain), Scene *UNUSED(scene),
 {
        ID *id = ptr->id.data;
 
-       if (GS(id->name) == ID_IM) {
+       if (id && GS(id->name) == ID_IM) {
                Image *ima = (Image *)id;
                ImBuf *ibuf;
                void *lock;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to