From b81cb0200ba11a1f656712fd521c47e8e3a192b8 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Thu, 28 Jan 2010 19:54:06 +0000 Subject: 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. --- source/blender/makesdna/DNA_windowmanager_types.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/makesdna/DNA_windowmanager_types.h') diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 8e1042f3e12..4a7080034ee 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -259,9 +259,7 @@ typedef struct wmKeyConfig { } wmKeyConfig; /* wmKeyConfig.flag */ -#define KEYCONF_TWOBUTTONMOUSE (1 << 1) -#define KEYCONF_LMOUSESELECT (1 << 2) -#define KEYCONF_NONUMPAD (1 << 3) +#define KEYCONF_USER (1 << 1) /* this one is the operator itself, stored in files for macros etc */ /* operator + operatortype should be able to redo entirely, but for different contextes */ -- cgit v1.2.3