diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-22 06:57:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-22 06:57:12 +0400 |
commit | 3a44e975a9c96521b722d631207b87d0210e1202 (patch) | |
tree | 296fc06b16a2c580c0924ec2f1da5c9cb3542244 /source/gameengine/Ketsji | |
parent | 543b57fbeb6592421d3f133d4d40cc161a46894c (diff) |
Fix T38539: Can't set near sensor distance above 100 via python
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r-- | source/gameengine/Ketsji/KX_NearSensor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_NearSensor.cpp b/source/gameengine/Ketsji/KX_NearSensor.cpp index 6459f35192d..92ab8f412d9 100644 --- a/source/gameengine/Ketsji/KX_NearSensor.cpp +++ b/source/gameengine/Ketsji/KX_NearSensor.cpp @@ -284,8 +284,8 @@ PyMethodDef KX_NearSensor::Methods[] = { }; PyAttributeDef KX_NearSensor::Attributes[] = { - KX_PYATTRIBUTE_FLOAT_RW_CHECK("distance", 0, 100, KX_NearSensor, m_Margin, CheckResetDistance), - KX_PYATTRIBUTE_FLOAT_RW_CHECK("resetDistance", 0, 100, KX_NearSensor, m_ResetMargin, CheckResetDistance), + KX_PYATTRIBUTE_FLOAT_RW_CHECK("distance", 0, 10000, KX_NearSensor, m_Margin, CheckResetDistance), + KX_PYATTRIBUTE_FLOAT_RW_CHECK("resetDistance", 0, 10000, KX_NearSensor, m_ResetMargin, CheckResetDistance), {NULL} //Sentinel }; |