History

QML works, C++ works but does a manual set to true, does not see updates from QML set setting.

Kasen IO committed 6 years ago

Commit 98473ab1 parent 61943d03 files · +33 −35Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+3−1
@@ -2370,7 +2370,9 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co · 2369 unmodified lines
23702370 safeURLPrefixes += qEnvironmentVariable("EXTRA_WHITELIST").trimmed().split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts);
23712371
23722372 // ENTITY SCRIPT WHITELIST TOGGLE CHECK
2373− bool whitelistEnabled = whitelistEnabledSetting.get();
2373+ bool whitelistEnabled = _whitelistEnabled.get();
2374+
2375+ _whitelistEnabled.set(true);
23742376
23752377 if (!whitelistEnabled) {
23762378 passList = true;