[Bf-blender-cvs] [b5ba5a0b94b] blender2.8: Correct error clearing runtime tool in recent commit

Campbell Barton noreply at git.blender.org
Wed Nov 28 04:12:23 CET 2018


Commit: b5ba5a0b94b04b2fdc21cc7ed2f2ad582d637677
Author: Campbell Barton
Date:   Wed Nov 28 14:11:10 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBb5ba5a0b94b04b2fdc21cc7ed2f2ad582d637677

Correct error clearing runtime tool in recent commit

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

M	source/blender/editors/screen/area.c

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

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 0f024b02c43..9655fb9f77a 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1646,6 +1646,10 @@ void ED_area_initialize(wmWindowManager *wm, wmWindow *win, ScrArea *sa)
 			WM_toolsystem_refresh_screen_area(workspace, view_layer, sa);
 			sa->flag |= AREA_FLAG_ACTIVE_TOOL_UPDATE;
 		}
+		else {
+			sa->runtime.tool = NULL;
+			sa->runtime.is_tool_set = true;
+		}
 	}
 }



More information about the Bf-blender-cvs mailing list