forked from teamnwah/openmw-tes3coop
Use sky_night_02.nif if available (Fixes #1744)
This commit is contained in:
parent
639ae7e06c
commit
45f0f0e4c3
1 changed files with 6 additions and 1 deletions
|
@ -294,7 +294,12 @@ void SkyManager::create()
|
||||||
|
|
||||||
// Stars
|
// Stars
|
||||||
mAtmosphereNight = mRootNode->createChildSceneNode();
|
mAtmosphereNight = mRootNode->createChildSceneNode();
|
||||||
NifOgre::ObjectScenePtr objects = NifOgre::Loader::createObjects(mAtmosphereNight, "meshes\\sky_night_01.nif");
|
NifOgre::ObjectScenePtr objects;
|
||||||
|
if (Ogre::ResourceGroupManager::getSingleton().resourceExistsInAnyGroup("meshes\\sky_night_02.nif"))
|
||||||
|
objects = NifOgre::Loader::createObjects(mAtmosphereNight, "meshes\\sky_night_02.nif");
|
||||||
|
else
|
||||||
|
objects = NifOgre::Loader::createObjects(mAtmosphereNight, "meshes\\sky_night_01.nif");
|
||||||
|
|
||||||
for(size_t i = 0, matidx = 0;i < objects->mEntities.size();i++)
|
for(size_t i = 0, matidx = 0;i < objects->mEntities.size();i++)
|
||||||
{
|
{
|
||||||
Entity* night1_ent = objects->mEntities[i];
|
Entity* night1_ent = objects->mEntities[i];
|
||||||
|
|
Loading…
Reference in a new issue