[Bf-blender-cvs] [fe737780959] master: Cleanup: unused function from 082ddc9379b2bdc963635c1109fbd6c6bce91eed

Campbell Barton noreply at git.blender.org
Thu Aug 26 08:11:09 CEST 2021


Commit: fe7377809596c5a65e185afeefd500f7474c274b
Author: Campbell Barton
Date:   Thu Aug 26 16:10:05 2021 +1000
Branches: master
https://developer.blender.org/rBfe7377809596c5a65e185afeefd500f7474c274b

Cleanup: unused function from 082ddc9379b2bdc963635c1109fbd6c6bce91eed

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py
index 74e0f242299..28549098e51 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_common.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py
@@ -942,21 +942,6 @@ class WM_MT_toolsystem_submenu(Menu):
             ).name = item.idname
 
 
-def _kmi_props_setattr(kmi_props, attr, value):
-    if type(value) is list:
-        kmi_subprop = getattr(kmi_props, attr)
-        for subattr, subvalue in value:
-            _kmi_props_setattr(kmi_subprop, subattr, subvalue)
-        return
-
-    try:
-        setattr(kmi_props, attr, value)
-    except AttributeError:
-        print(f"Warning: property '{attr}' not found in keymap item '{kmi_props.__class__.__name__}'")
-    except Exception as ex:
-        print(f"Warning: {ex!r}")
-
-
 def _activate_by_item(context, space_type, item, index, *, as_fallback=False):
     cls = ToolSelectPanelHelper._tool_class_from_space_type(space_type)
     tool = ToolSelectPanelHelper._tool_active_from_context(context, space_type, create=True)



More information about the Bf-blender-cvs mailing list