mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
also make sure local file includes work for non-entity scripts
This commit is contained in:
parent
063320771c
commit
b0f239b89d
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,12 @@ void BatchLoader::start() {
|
|||
} else {
|
||||
QString fileName = url.toLocalFile();
|
||||
|
||||
// sometimes on windows, we see the toLocalFile() return null,
|
||||
// in this case we will attempt to simply use the url as a string
|
||||
if (fileName.isEmpty()) {
|
||||
fileName = url.toString();
|
||||
}
|
||||
|
||||
qCDebug(scriptengine) << "Reading file at " << fileName;
|
||||
|
||||
QFile scriptFile(fileName);
|
||||
|
|
Loading…
Reference in a new issue