fix local skybox file reference on windows

This commit is contained in:
Stephen Birarda 2017-04-17 16:57:14 -07:00
parent 0bb3f1c9dc
commit 3216202a8b

View file

@ -171,7 +171,7 @@ void SkyboxBakeWidget::bakeButtonClicked() {
QUrl skyboxToBakeURL(fileURLString);
// if the URL doesn't have a scheme, assume it is a local file
if (skyboxToBakeURL.scheme().isEmpty()) {
if (skyboxToBakeURL.scheme() != "http" && skyboxToBakeURL.scheme() != "https" && skyboxToBakeURL.scheme() != "ftp") {
skyboxToBakeURL.setScheme("file");
}