diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2014-07-29 07:12:17 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2014-07-29 07:19:26 +0400 |
commit | a21a9ddbce1dd28c09843eb1f3b52d227443fc64 (patch) | |
tree | 8f29b4666646f47777024267bb9e191b6341a05b | |
parent | 939503ac83ae37cb30e477b5ff9645639e1f5ef4 (diff) |
Fix T41204 Python KX_lightObject.distance bug by Jon Szabo (thatonejonguy)
Reviewers: dfelinto
Subscribers: thatonejonguy
Projects: #game_engine
Differential Revision: https://developer.blender.org/D689
-rw-r--r-- | source/gameengine/Ketsji/KX_Light.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp index 37c36da0db3..5b5981f930b 100644 --- a/source/gameengine/Ketsji/KX_Light.cpp +++ b/source/gameengine/Ketsji/KX_Light.cpp @@ -231,7 +231,7 @@ int KX_LightObject::pyattr_set_distance(void *self_v, const KX_PYATTRIBUTE_DEF * else if (val > 5000.f) val = 5000.f; - self->m_lightobj->m_energy = val; + self->m_lightobj->m_distance = val; return PY_SET_ATTR_SUCCESS; } |