[Bf-blender-cvs] [2a20754467b] tracking_tools: Fix crash/undefined-behavior when opening tracker with clip region open

Julian Eisel noreply at git.blender.org
Tue Jul 20 15:46:05 CEST 2021


Commit: 2a20754467bb94c2451b095ae2afd83798aef1a3
Author: Julian Eisel
Date:   Tue Jul 20 15:36:52 2021 +0200
Branches: tracking_tools
https://developer.blender.org/rB2a20754467bb94c2451b095ae2afd83798aef1a3

Fix crash/undefined-behavior when opening tracker with clip region open

Python code was explicitly hiding the tool header region, but drawing
should not modify screen context. That can cause all kinds of issues,
like this one. Such stuff can be handled by editor C code.

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

M	release/scripts/startup/bl_ui/space_clip.py

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

diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index 2333cff41bc..f88e67f9e95 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -206,9 +206,6 @@ class CLIP_HT_header(Header):
         clip = sc.clip
         show_region_tool_header = sc.show_region_tool_header
 
-        if not sc.view == 'CLIP':
-            sc.show_region_tool_header = False
-
         if not show_region_tool_header:
             layout.template_header()



More information about the Bf-blender-cvs mailing list