[Bf-blender-cvs] [06a7db85bce] blender2.8: BGE cleanup: remove Base from KX_Light.h

Dalai Felinto noreply at git.blender.org
Thu Nov 9 18:46:39 CET 2017


Commit: 06a7db85bce8ff38a432a4159c7caf0636db6d77
Author: Dalai Felinto
Date:   Thu Nov 9 15:28:46 2017 -0200
Branches: blender2.8
https://developer.blender.org/rB06a7db85bce8ff38a432a4159c7caf0636db6d77

BGE cleanup: remove Base from KX_Light.h

===================================================================

M	source/gameengine/Ketsji/KX_Light.cpp
M	source/gameengine/Ketsji/KX_Light.h

===================================================================

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);



More information about the Bf-blender-cvs mailing list