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:
authorCampbell Barton <ideasman42@gmail.com>2009-09-30 02:49:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-09-30 02:49:33 +0400
commit8b6f5c171da4d9b165c5ba0628f0302430dbed2b (patch)
tree143760eb8bfb151e6bea7fc5fdaed0fafe221a49 /source/gameengine/Ketsji/KX_Light.h
parent71b3088596feb008e503be6430a30555aaffa586 (diff)
- rather then passing the python namespace dictionary to the controller function get the namespace from the converter.
- renamed SetPythonDictionary() to SetPyNamespace() - remove IsLight(), GetGameObjectType() existed before this but wasnt used for lights.
Diffstat (limited to 'source/gameengine/Ketsji/KX_Light.h')
-rw-r--r--source/gameengine/Ketsji/KX_Light.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_Light.h b/source/gameengine/Ketsji/KX_Light.h
index 74d8abcfeac..0e8484a4fe5 100644
--- a/source/gameengine/Ketsji/KX_Light.h
+++ b/source/gameengine/Ketsji/KX_Light.h
@@ -64,6 +64,8 @@ public:
void BindShadowBuffer(class RAS_IRasterizer *ras, class KX_Camera *cam, class MT_Transform& camtrans);
void UnbindShadowBuffer(class RAS_IRasterizer *ras);
void Update();
+
+ virtual int GetGameObjectType() { return OBJ_LIGHT; }
#ifndef DISABLE_PYTHON
/* attributes */
@@ -73,8 +75,6 @@ public:
static PyObject* pyattr_get_type(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
static int pyattr_set_type(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject* value);
#endif
-
- virtual bool IsLight(void) { return true; }
};
#endif //__KX_LIGHT