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:
Campbell Barton
2018-11-20 10:56:50 +11:00
parent d870e7d930
commit f8c16b0175
8 changed files with 318 additions and 284 deletions

View File

@@ -49,7 +49,7 @@ def _keymap_fn_from_seq(keymap_data):
def keymap_fn(km):
if keymap_fn.keymap_data:
from bpy_extras.keyconfig_utils import keymap_init_from_data
from bl_keymap_utils.io import keymap_init_from_data
keymap_init_from_data(km, keymap_fn.keymap_data)
keymap_fn.keymap_data = keymap_data
return keymap_fn