diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-01-18 00:46:34 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-01-18 00:46:34 +0300 |
commit | 9356b1b7ee99d86853589a51dfe89c490b7d2a57 (patch) | |
tree | b99ab650199fde1d26879421747462e8882d9409 /source/blender/blenkernel | |
parent | 7d2b40c862de0bca8a12984f79771b0d68db392e (diff) |
BGE: Mouse Sensor type defaults to 1 (MOUSELEFT ) + remove camera attribute from Camera objects.
(if you want to mark your camera objects create a property manually ;)
That way object.getPropertyNames() works consistently across all object types.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/sca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sca.c b/source/blender/blenkernel/intern/sca.c index 5cd554725ff..1bef60f984c 100644 --- a/source/blender/blenkernel/intern/sca.c +++ b/source/blender/blenkernel/intern/sca.c @@ -139,7 +139,7 @@ void init_sensor(bSensor *sens) break; case SENS_MOUSE: ms=sens->data= MEM_callocN(sizeof(bMouseSensor), "mousesens"); - //XXX ms->type= LEFTMOUSE; + ms->type= 1; // LEFTMOUSE workaround because Mouse Sensor types enum starts in 1 break; case SENS_COLLISION: sens->data= MEM_callocN(sizeof(bCollisionSensor), "colsens"); |