From 0b5cb65cdd2724ac43fece16507d0eb3c1961673 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 25 Mar 2019 12:42:28 +0000 Subject: [PATCH] Added a call to the CullSetting::readCommnadLine(..) to make sure the --NO_CULLING and --VIEW_FRUSTUM, --VIEW_FRUSTUM_SIDES command line parameters are honoured --- src/osgViewer/Viewer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgViewer/Viewer.cpp b/src/osgViewer/Viewer.cpp index 914173f77..978109422 100644 --- a/src/osgViewer/Viewer.cpp +++ b/src/osgViewer/Viewer.cpp @@ -105,6 +105,8 @@ Viewer::Viewer(osg::ArgumentParser& arguments) osg::DisplaySettings::instance()->readCommandLine(arguments); osgDB::readCommandLine(arguments); + getCamera()->readCommandLine(arguments); + std::string colorStr; while (arguments.read("--clear-color",colorStr)) {