mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Use settings values for Camera settings
This commit is contained in:
parent
5b36ea0179
commit
5d5e6844d1
6 changed files with 21 additions and 32 deletions
|
@ -3,7 +3,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
#include <components/settings/settings.hpp>
|
||||
#include <components/settings/values.hpp>
|
||||
|
||||
namespace SceneUtil
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ namespace SceneUtil
|
|||
{
|
||||
bool enableReverseZ = false;
|
||||
|
||||
if (Settings::Manager::getBool("reverse z", "Camera"))
|
||||
if (Settings::camera().mReverseZ)
|
||||
{
|
||||
osg::ref_ptr<osg::GLExtensions> exts = osg::GLExtensions::Get(0, false);
|
||||
if (exts && exts->isClipControlSupported)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue