mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 12:39:53 +00:00
Initialize cubeSize variable for 360 degrees screenshots correctly
This commit is contained in:
parent
a08048da4e
commit
770d86f9bd
@ -691,9 +691,6 @@ namespace MWRender
|
|||||||
int screenshotW = mViewer->getCamera()->getViewport()->width();
|
int screenshotW = mViewer->getCamera()->getViewport()->width();
|
||||||
int screenshotH = mViewer->getCamera()->getViewport()->height();
|
int screenshotH = mViewer->getCamera()->getViewport()->height();
|
||||||
int screenshotMapping = 0;
|
int screenshotMapping = 0;
|
||||||
int cubeSize = screenshotMapping == 2 ?
|
|
||||||
screenshotW: // planet mapping needs higher resolution
|
|
||||||
screenshotW / 2;
|
|
||||||
|
|
||||||
std::vector<std::string> settingArgs;
|
std::vector<std::string> settingArgs;
|
||||||
boost::algorithm::split(settingArgs,settingStr,boost::is_any_of(" "));
|
boost::algorithm::split(settingArgs,settingStr,boost::is_any_of(" "));
|
||||||
@ -718,6 +715,9 @@ namespace MWRender
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// planet mapping needs higher resolution
|
||||||
|
int cubeSize = screenshotMapping == 2 ? screenshotW : screenshotW / 2;
|
||||||
|
|
||||||
if (settingArgs.size() > 1)
|
if (settingArgs.size() > 1)
|
||||||
screenshotW = std::min(10000,std::atoi(settingArgs[1].c_str()));
|
screenshotW = std::min(10000,std::atoi(settingArgs[1].c_str()));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user