Cleanup: move bpy_extras.keyconfig_utils to own module
bpy_extras were meant to be useful high-level helper functions for script authors to perform common operations, to avoid writing to verbose API's. bpy_extras.keymap_utils contains some specialized API calls mainly intended for Blender's own internal use. Move keymap import export to internal API.
This commit is contained in:
@@ -1613,7 +1613,7 @@ class WM_OT_keyconfig_export(Operator):
|
||||
)
|
||||
|
||||
def execute(self, context):
|
||||
from bpy_extras import keyconfig_utils
|
||||
from bl_keymap_utils.io import keyconfig_export_as_data
|
||||
|
||||
if not self.filepath:
|
||||
raise Exception("Filepath not set")
|
||||
@@ -1623,7 +1623,7 @@ class WM_OT_keyconfig_export(Operator):
|
||||
|
||||
wm = context.window_manager
|
||||
|
||||
keyconfig_utils.keyconfig_export_as_data(
|
||||
keyconfig_export_as_data(
|
||||
wm,
|
||||
wm.keyconfigs.active,
|
||||
self.filepath,
|
||||
|
Reference in New Issue
Block a user