Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2010-05-24 14:38:05 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-05-24 14:38:05 +0400
commit6c01b7b4f84b3a81836a372ec14e4ba6793b6ad9 (patch)
treeac764e723dc64cc21f98cd8e6e77d8ed67b9e8a2 /source/blender/makesrna/intern/rna_sensor.c
parent9777072c0e42931848ea82dc606d155717fc3adf (diff)
Logic Editor - fix for Keyboard Sensor + Copy Game Property fancy submenu
* Keyboard Sensor entry keys (key, modifier 1 and 2) can actually be any key - (you can use Shift as main key, and D as modifier if you want). It's - strange in my opinion, but it's 2.49 way of doing it. * Copy Game Property (operator found in SPACE menu) - reorganized it so the properties appear as submenu items. - a "little lot" of work for such a small eye-candie but well I hope more - people like it as well :) Matt, I had to recreate the dynamic_enum to make it work. I'm count on you for a real fix for this ;)
Diffstat (limited to 'source/blender/makesrna/intern/rna_sensor.c')
-rw-r--r--source/blender/makesrna/intern/rna_sensor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_sensor.c b/source/blender/makesrna/intern/rna_sensor.c
index 85fcba286dd..b206384dbc4 100644
--- a/source/blender/makesrna/intern/rna_sensor.c
+++ b/source/blender/makesrna/intern/rna_sensor.c
@@ -154,7 +154,7 @@ static void rna_Sensor_keyboard_key_set(struct PointerRNA *ptr, int value)
bSensor *sens= (bSensor *)ptr->data;
bKeyboardSensor *ks = sens->data;
- if (ISKEYBOARD(value) && !ISKEYMODIFIER(value))
+ if (ISKEYBOARD(value))
ks->key = value;
}
@@ -163,7 +163,7 @@ static void rna_Sensor_keyboard_modifier_set(struct PointerRNA *ptr, int value)
bSensor *sens= (bSensor *)ptr->data;
bKeyboardSensor *ks = sens->data;
- if (ISKEYMODIFIER(value))
+ if (ISKEYBOARD(value))
ks->qual = value;
}
@@ -172,7 +172,7 @@ static void rna_Sensor_keyboard_modifier2_set(struct PointerRNA *ptr, int value)
bSensor *sens= (bSensor *)ptr->data;
bKeyboardSensor *ks = sens->data;
- if (ISKEYMODIFIER(value))
+ if (ISKEYBOARD(value))
ks->qual2 = value;
}