bonsai chaching - save ears for those running the tests

This commit is contained in:
Andrej730
2026-02-03 12:32:11 +05:00
parent 015431fa1f
commit abf0d6f81a
+2 -1
View File
@@ -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