[Bf-blender-cvs] [619961df3a7] blender2.8: Fix crash opening some old files, after recent changes.

Brecht Van Lommel noreply at git.blender.org
Wed Sep 26 14:25:33 CEST 2018


Commit: 619961df3a7f8f14853c05aed61da79b4757ec32
Author: Brecht Van Lommel
Date:   Wed Sep 26 14:20:52 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB619961df3a7f8f14853c05aed61da79b4757ec32

Fix crash opening some old files, after recent changes.

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

M	source/blender/blenkernel/intern/blendfile.c

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

diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index 6fc11e367b5..b7f134ed01b 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -225,7 +225,7 @@ static void setup_app_data(
 		/* We need to tag this here because events may be handled immediately after.
 		 * only the current screen is important because we wont have to handle
 		 * events from multiple screens at once.*/
-		{
+		if (curscreen) {
 			BKE_screen_gizmo_tag_refresh(curscreen);
 		}
 	}



More information about the Bf-blender-cvs mailing list