The goal is to strip out data that can be used by untoward users in copying models, avatars, etc.
Showing the changes to libraries/script-engine/src/BatchLoader.cpp (1 of 36 files). Show all
Unified · Split
| @@ -51,8 +51,6 @@ void BatchLoader::start(int maxRetries) { · 50 unmodified lines | |||
| 51 | for (const auto& rawURL : _urls) { | 51 | for (const auto& rawURL : _urls) { |
| 52 | QUrl url = expandScriptUrl(normalizeScriptURL(rawURL)); | 52 | QUrl url = expandScriptUrl(normalizeScriptURL(rawURL)); |
| 53 | 53 | ||
| 54 | qCDebug(scriptengine) << "Loading script at " << url; | ||
| 55 | |||
| 56 | auto scriptCache = DependencyManager::get<ScriptCache>(); | 54 | auto scriptCache = DependencyManager::get<ScriptCache>(); |
| 57 | 55 | ||
| 58 | // Use a proxy callback to handle the call and emit the signal in a thread-safe way. | 56 | // Use a proxy callback to handle the call and emit the signal in a thread-safe way. |
| @@ -65,10 +63,8 @@ void BatchLoader::start(int maxRetries) { · 6 unmodified lines | |||
| 65 | _status.insert(url, status); | 63 | _status.insert(url, status); |
| 66 | if (isURL && success) { | 64 | if (isURL && success) { |
| 67 | _data.insert(url, contents); | 65 | _data.insert(url, contents); |
| 68 | qCDebug(scriptengine) << "Loaded: " << url; | ||
| 69 | } else { | 66 | } else { |
| 70 | _data.insert(url, QString()); | 67 | _data.insert(url, QString()); |
| 71 | qCDebug(scriptengine) << "Could not load: " << url << status; | ||
| 72 | } | 68 | } |
| 73 | 69 | ||
| 74 | if (!_finished && _urls.size() == _data.size()) { | 70 | if (!_finished && _urls.size() == _data.size()) { |