forked from bartvdbraak/blender
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:
parent
939503ac83
commit
a21a9ddbce
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user