disable jsbaker

This commit is contained in:
SamGondelman 2019-04-08 11:03:21 -07:00
parent 759d59c709
commit 7cbda006a0
2 changed files with 6 additions and 2 deletions

View file

@ -55,8 +55,9 @@ void BakerCLI::bakeFile(QUrl inputUrl, const QString& outputPath, const QString&
}
}
} else if (type == SCRIPT_EXTENSION) {
_baker = std::unique_ptr<Baker> { new JSBaker(inputUrl, outputPath) };
_baker->moveToThread(Oven::instance().getNextWorkerThread());
// FIXME: disabled for now because it breaks some scripts
//_baker = std::unique_ptr<Baker> { new JSBaker(inputUrl, outputPath) };
//_baker->moveToThread(Oven::instance().getNextWorkerThread());
} else if (type == MATERIAL_EXTENSION) {
_baker = std::unique_ptr<Baker> { new MaterialBaker(inputUrl.toDisplayString(), true, outputPath) };
_baker->moveToThread(Oven::instance().getNextWorkerThread());

View file

@ -397,6 +397,8 @@ void DomainBaker::enumerateEntities() {
}
}
// FIXME: disabled for now because it breaks some scripts
/*
// Scripts
if (entity.contains(SCRIPT_KEY)) {
addScriptBaker(SCRIPT_KEY, entity[SCRIPT_KEY].toString(), *it);
@ -404,6 +406,7 @@ void DomainBaker::enumerateEntities() {
if (entity.contains(SERVER_SCRIPTS_KEY)) {
// TODO: serverScripts can be multiple scripts, need to handle that
}
*/
// Materials
if (entity.contains(MATERIAL_URL_KEY)) {