From 06a7db85bce8ff38a432a4159c7caf0636db6d77 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 9 Nov 2017 15:28:46 -0200 Subject: BGE cleanup: remove Base from KX_Light.h --- source/gameengine/Ketsji/KX_Light.cpp | 2 -- source/gameengine/Ketsji/KX_Light.h | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'source/gameengine') diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp index 6b66a4c7599..fcdcdf4a02a 100644 --- a/source/gameengine/Ketsji/KX_Light.cpp +++ b/source/gameengine/Ketsji/KX_Light.cpp @@ -87,8 +87,6 @@ CValue* KX_LightObject::GetReplica() replica->m_lightobj = m_lightobj->Clone(); replica->m_lightobj->m_light = replica; m_rasterizer->AddLight(replica->m_lightobj); - if (m_base) - m_base = NULL; return replica; } diff --git a/source/gameengine/Ketsji/KX_Light.h b/source/gameengine/Ketsji/KX_Light.h index 469f2d62b76..b354fca4d41 100644 --- a/source/gameengine/Ketsji/KX_Light.h +++ b/source/gameengine/Ketsji/KX_Light.h @@ -38,7 +38,7 @@ struct GPULamp; struct Scene; -struct BaseLegacy; +struct Base; class KX_Camera; class RAS_IRasterizer; class RAS_ILightObject; @@ -51,7 +51,6 @@ protected: RAS_ILightObject* m_lightobj; class RAS_IRasterizer* m_rasterizer; //needed for registering and replication of lightobj Scene* m_blenderscene; - BaseLegacy* m_base; public: KX_LightObject(void* sgReplicationInfo,SG_Callbacks callbacks,RAS_IRasterizer* rasterizer,RAS_ILightObject* lightobj, bool glsl); -- cgit v1.2.3