From 0ad45ac99a87d7078031312d42e46073af19c28a Mon Sep 17 00:00:00 2001 From: Samuel Abels Date: Wed, 9 Jul 2025 10:19:22 +0200 Subject: [PATCH] CAM: silence unnecessary log for preferences change when no change was actually made --- src/Mod/CAM/Path/Preferences.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/CAM/Path/Preferences.py b/src/Mod/CAM/Path/Preferences.py index 10d5204393..b3bfc8ee22 100644 --- a/src/Mod/CAM/Path/Preferences.py +++ b/src/Mod/CAM/Path/Preferences.py @@ -128,6 +128,8 @@ def getAssetPath() -> pathlib.Path: def setAssetPath(path: pathlib.Path): assert path.is_dir(), f"Cannot put a non-initialized asset directory into preferences: {path}" + if str(path) == str(getAssetPath()): + return pref = tool_preferences() pref.SetString(ToolPath, str(path)) _emit_change(ToolGroup, ToolPath, path)