Skip to content
Snippets Groups Projects
Commit fe1a0e71 authored by D-AIRY's avatar D-AIRY
Browse files

Small fix

parent 82b9a2c1
Branches
Tags version_X.8.1-dev
No related merge requests found
...@@ -292,7 +292,7 @@ QT стиль документирования (!) и QT_AUTOBRIEF - корот ...@@ -292,7 +292,7 @@ QT стиль документирования (!) и QT_AUTOBRIEF - корот
#ifndef __SKYXENGINE_H #ifndef __SKYXENGINE_H
#define __SKYXENGINE_H #define __SKYXENGINE_H
#define SKYXENGINE_VERSION "X.8.0-dev" #define SKYXENGINE_VERSION "X.8.1-dev"
#define SKYXENGINE_VERSION4EDITORS "SkyXEngine version " ## SKYXENGINE_VERSION #define SKYXENGINE_VERSION4EDITORS "SkyXEngine version " ## SKYXENGINE_VERSION
......
...@@ -21,7 +21,6 @@ CLightSun::CLightSun(CEntityManager * pMgr):BaseClass(pMgr) ...@@ -21,7 +21,6 @@ CLightSun::CLightSun(CEntityManager * pMgr):BaseClass(pMgr)
if(m_pLightSystem) if(m_pLightSystem)
{ {
m_pLight = m_pSun = m_pLightSystem->newSun(); m_pLight = m_pSun = m_pLightSystem->newSun();
//m_pLight->setDistance(m_fDist);
m_pLight->setColor(float4(m_vColor, m_fDist)); m_pLight->setColor(float4(m_vColor, m_fDist));
} }
} }
......
...@@ -362,6 +362,7 @@ void CLightSystem::destroySun(IXLightSun *pLight) ...@@ -362,6 +362,7 @@ void CLightSystem::destroySun(IXLightSun *pLight)
{ {
assert(m_pSun == pLight); assert(m_pSun == pLight);
_deleteLight(m_pSun); _deleteLight(m_pSun);
m_pSun = NULL;
} }
void CLightSystem::destroyPoint(IXLightPoint *_pLight) void CLightSystem::destroyPoint(IXLightPoint *_pLight)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment