mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
adding a setting to disable static geometry
This commit is contained in:
parent
5accca385c
commit
1445ae992d
@ -3,6 +3,7 @@
|
|||||||
#include <OgreSceneNode.h>
|
#include <OgreSceneNode.h>
|
||||||
|
|
||||||
#include <components/nifogre/ogre_nif_loader.hpp>
|
#include <components/nifogre/ogre_nif_loader.hpp>
|
||||||
|
#include <components/settings/settings.hpp>
|
||||||
|
|
||||||
using namespace MWRender;
|
using namespace MWRender;
|
||||||
|
|
||||||
@ -113,7 +114,7 @@ void Objects::insertMesh (const MWWorld::Ptr& ptr, const std::string& mesh)
|
|||||||
bounds.scale(insert->getScale());
|
bounds.scale(insert->getScale());
|
||||||
mBounds[ptr.getCell()].merge(bounds);
|
mBounds[ptr.getCell()].merge(bounds);
|
||||||
|
|
||||||
if(!mIsStatic)
|
if(!mIsStatic || !Settings::Manager::getBool("use static geometry", "Objects"))
|
||||||
{
|
{
|
||||||
insert->attachObject(ent);
|
insert->attachObject(ent);
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
[Objects]
|
[Objects]
|
||||||
shaders = true
|
shaders = true
|
||||||
num lights = 8
|
num lights = 8
|
||||||
|
use static geometry = true
|
||||||
|
|
||||||
[Terrain]
|
[Terrain]
|
||||||
num lights = 8
|
num lights = 8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user