From abf0d6f81a8cb678cb3065b9675cd64d7f27553b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 3 Feb 2026 12:32:11 +0500 Subject: [PATCH] bonsai chaching - save ears for those running the tests --- src/bonsai/bonsai/tool/cost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/tool/cost.py b/src/bonsai/bonsai/tool/cost.py index 3dcbb8e32c..663b16040e 100644 --- a/src/bonsai/bonsai/tool/cost.py +++ b/src/bonsai/bonsai/tool/cost.py @@ -144,7 +144,8 @@ class Cost(bonsai.core.tool.Cost): @classmethod def play_sound(cls) -> None: - if tool.Blender.get_addon_preferences().should_play_chaching_sound: + # Save ears for those running the tests in background mode. + if tool.Blender.get_addon_preferences().should_play_chaching_sound and not bpy.app.background: cls.play_chaching_sound() # lol @classmethod