mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:01:09 +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);
|
connect(this, &QObject::destroyed, reply, &QObject::deleteLater);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
#ifdef _WIN32
|
|
||||||
QString fileName = url.toString();
|
|
||||||
#else
|
|
||||||
QString fileName = url.toLocalFile();
|
QString fileName = url.toLocalFile();
|
||||||
#endif
|
|
||||||
|
|
||||||
qCDebug(scriptengine) << "Reading file at " << fileName;
|
qCDebug(scriptengine) << "Reading file at " << fileName;
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,7 @@ static int quatMetaTypeId = qRegisterMetaType<glm::quat>();
|
||||||
static int xColorMetaTypeId = qRegisterMetaType<xColor>();
|
static int xColorMetaTypeId = qRegisterMetaType<xColor>();
|
||||||
static int pickRayMetaTypeId = qRegisterMetaType<PickRay>();
|
static int pickRayMetaTypeId = qRegisterMetaType<PickRay>();
|
||||||
static int collisionMetaTypeId = qRegisterMetaType<Collision>();
|
static int collisionMetaTypeId = qRegisterMetaType<Collision>();
|
||||||
|
static int qMapURLStringMetaTypeId = qRegisterMetaType<QMap<QUrl,QString>>();
|
||||||
|
|
||||||
|
|
||||||
void registerMetaTypes(QScriptEngine* engine) {
|
void registerMetaTypes(QScriptEngine* engine) {
|
||||||
qScriptRegisterMetaType(engine, vec4toScriptValue, vec4FromScriptValue);
|
qScriptRegisterMetaType(engine, vec4toScriptValue, vec4FromScriptValue);
|
||||||
|
|
Loading…
Reference in a new issue