PanelSpy - also support draw_header for panels

This commit is contained in:
Andrej730
2025-11-10 15:53:49 +05:00
parent 4009834b97
commit e1bf891ec6
+2
View File
@@ -69,6 +69,8 @@ class PanelSpy:
self.spied_props: list[dict[str, Any]] = []
self.spied_operators: list[dict[str, Any]] = []
self.spied_lists: list[dict[str, Any]] = []
if hasattr(self.blender_panel, "draw_header"):
self.blender_panel.draw_header(self, bpy.context)
self.blender_panel.draw(self, bpy.context)
def __getattr__(self, attr: str) -> PanelSpy | Any: