forked from bartvdbraak/blender
Cleanup: style
This commit is contained in:
parent
bae5826b65
commit
d8fc404415
@ -205,6 +205,7 @@ static GHOST_TKey convertKey(int rawCode, unichar recvChar, UInt16 keyAction)
|
||||
return GHOST_kKeyUnknown;
|
||||
|
||||
default:
|
||||
{
|
||||
/* alphanumerical or punctuation key that is remappable in int'l keyboards */
|
||||
if ((recvChar >= 'A') && (recvChar <= 'Z')) {
|
||||
return (GHOST_TKey) (recvChar - 'A' + GHOST_kKeyA);
|
||||
@ -213,7 +214,6 @@ static GHOST_TKey convertKey(int rawCode, unichar recvChar, UInt16 keyAction)
|
||||
return (GHOST_TKey) (recvChar - 'a' + GHOST_kKeyA);
|
||||
}
|
||||
else {
|
||||
|
||||
/* Leopard and Snow Leopard 64bit compatible API*/
|
||||
CFDataRef uchrHandle; /*the keyboard layout*/
|
||||
TISInputSourceRef kbdTISHandle;
|
||||
@ -225,8 +225,7 @@ static GHOST_TKey convertKey(int rawCode, unichar recvChar, UInt16 keyAction)
|
||||
/*get actual character value of the "remappable" keys in int'l keyboards,
|
||||
if keyboard layout is not correctly reported (e.g. some non Apple keyboards in Tiger),
|
||||
then fallback on using the received charactersIgnoringModifiers */
|
||||
if (uchrHandle)
|
||||
{
|
||||
if (uchrHandle) {
|
||||
UInt32 deadKeyState=0;
|
||||
UniCharCount actualStrLength=0;
|
||||
|
||||
@ -252,6 +251,7 @@ static GHOST_TKey convertKey(int rawCode, unichar recvChar, UInt16 keyAction)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return GHOST_kKeyUnknown;
|
||||
}
|
||||
|
||||
|
@ -545,7 +545,7 @@ short copy_animedit_keys(bAnimContext *ac, ListBase *anim_data)
|
||||
aci->array_index = fcu->array_index;
|
||||
|
||||
/* detect if this is a bone. We do that here rather than during pasting because ID pointers will get invalidated if we undo.
|
||||
* storing the relavant information here helps avoiding crashes if we undo-repaste */
|
||||
* storing the relevant information here helps avoiding crashes if we undo-repaste */
|
||||
if ((aci->id_type == ID_OB) && (((Object *)aci->id)->type == OB_ARMATURE) && aci->rna_path) {
|
||||
Object *ob = (Object *)aci->id;
|
||||
char *str_start;
|
||||
|
Loading…
Reference in New Issue
Block a user