[Bf-blender-cvs] [a21a9dd] master: Fix T41204 Python KX_lightObject.distance bug by Jon Szabo (thatonejonguy)
Dalai Felinto
noreply at git.blender.org
Tue Jul 29 05:20:35 CEST 2014
Commit: a21a9ddbce1dd28c09843eb1f3b52d227443fc64
Author: Dalai Felinto
Date: Tue Jul 29 00:12:17 2014 -0300
Branches: master
https://developer.blender.org/rBa21a9ddbce1dd28c09843eb1f3b52d227443fc64
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
===================================================================
M source/gameengine/Ketsji/KX_Light.cpp
===================================================================
diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp
index 37c36da..5b5981f 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;
}
More information about the Bf-blender-cvs
mailing list