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
This commit is contained in:
Dalai Felinto 2014-07-29 00:12:17 -03:00
parent 939503ac83
commit a21a9ddbce
Notes: blender-bot 2023-02-14 10:17:44 +01:00
Referenced by issue #41204, Python KX_lightObject.distance method incorrectly updating energy not distance
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}