Blender Git Loki

Git Commits -> Revision b81cb02

Revision b81cb02 by Martin Poirier (master)
January 28, 2010, 19:54 (GMT)
Keyconfig import and remove

- Keyconfig are now marked as user_defined when it is the case
- Import keyconfig operator: select an exported keyconfig .py file, copies it to the scripts folder (keep the original copy if wanted, default True), imports and select as active config. The active keyconfig is stored in the user default file, so that still has to be saved after import.
- Remove keyconfig operator and button next to the keyconfig name (poll False if not user_defined). Removes the keyconfig from the list and deletes the file from the folder.

Remaining bug: The file is copied in the user defined script folder (if present) or the /scripts/ui folder. The problem is that it might be imported before operators defined in python are imported themselves. One solution would be to use a separate folder for keyconfigs that is imported after all others.

Commit Details:

Full Hash: b81cb0200ba11a1f656712fd521c47e8e3a192b8
SVN Revision: 26377
Parent Commit: 6f3dfe8
Lines Changed: +133, -18

7 Modified Paths:

/release/scripts/ui/space_userpref.py (+97, -14) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+1, -3) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+5, -1) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+21, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+2, -0) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021