mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
fix a bug in entity script includes and file based includes on windows
This commit is contained in:
parent
a8b5336e02
commit
063320771c
2 changed files with 1 additions and 6 deletions
|
@ -58,11 +58,7 @@ void BatchLoader::start() {
|
|||
connect(this, &QObject::destroyed, reply, &QObject::deleteLater);
|
||||
|
||||
} else {
|
||||
#ifdef _WIN32
|
||||
QString fileName = url.toString();
|
||||
#else
|
||||
QString fileName = url.toLocalFile();
|
||||
#endif
|
||||
|
||||
qCDebug(scriptengine) << "Reading file at " << fileName;
|
||||
|
||||
|
|
|
@ -26,8 +26,7 @@ static int quatMetaTypeId = qRegisterMetaType<glm::quat>();
|
|||
static int xColorMetaTypeId = qRegisterMetaType<xColor>();
|
||||
static int pickRayMetaTypeId = qRegisterMetaType<PickRay>();
|
||||
static int collisionMetaTypeId = qRegisterMetaType<Collision>();
|
||||
|
||||
|
||||
static int qMapURLStringMetaTypeId = qRegisterMetaType<QMap<QUrl,QString>>();
|
||||
|
||||
void registerMetaTypes(QScriptEngine* engine) {
|
||||
qScriptRegisterMetaType(engine, vec4toScriptValue, vec4FromScriptValue);
|
||||
|
|
Loading…
Reference in a new issue