[Bf-blender-cvs] [86a2f4a34a7] blender2.8: Fix crash with x-ray and redo panel

Dalai Felinto noreply at git.blender.org
Fri Jun 15 15:02:22 CEST 2018


Commit: 86a2f4a34a7d87c016416708117b6b36c6655666
Author: Dalai Felinto
Date:   Fri Jun 15 14:58:45 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB86a2f4a34a7d87c016416708117b6b36c6655666

Fix crash with x-ray and redo panel

Code was assuming any area with region data was the main one.
This is no longer the case.

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

M	source/blender/editors/space_view3d/space_view3d.c

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

diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index 3c98bc6d863..d77b13630e3 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -296,8 +296,10 @@ void ED_view3d_shade_update(Main *bmain, View3D *v3d, ScrArea *sa)
 		ARegion *ar;
 
 		for (ar = sa->regionbase.first; ar; ar = ar->next) {
-			if (ar->regiondata)
+			if ((ar->regiontype == RGN_TYPE_WINDOW) && ar->regiondata) {
 				ED_view3d_stop_render_preview(wm, ar);
+				break;
+			}
 		}
 	}
 }



More information about the Bf-blender-cvs mailing list