Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/VideoTexture')
-rw-r--r--source/gameengine/VideoTexture/Texture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/VideoTexture/Texture.cpp b/source/gameengine/VideoTexture/Texture.cpp
index c187f7c41c1..35a73193a24 100644
--- a/source/gameengine/VideoTexture/Texture.cpp
+++ b/source/gameengine/VideoTexture/Texture.cpp
@@ -36,6 +36,7 @@
#include "KX_GameObject.h"
#include "KX_Light.h"
#include "RAS_MeshObject.h"
+#include "RAS_ILightObject.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_image_types.h"
@@ -237,7 +238,7 @@ static int Texture_init(Texture *self, PyObject *args, PyObject *kwds)
}
else if (lamp != NULL)
{
- self->m_imgTexture = lamp->GetTextureImage(texID);
+ self->m_imgTexture = lamp->GetLightData()->GetTextureImage(texID);
self->m_useMatTexture = false;
}