mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 06:38:40 +02:00
more debugging using github compiler runs
This commit is contained in:
parent
23edfa3747
commit
16c2d76efa
4 changed files with 7 additions and 8 deletions
|
@ -48,7 +48,7 @@
|
||||||
const QString GRABBABLE_USER_DATA = "{\"grabbableKey\":{\"grabbable\":true}}";
|
const QString GRABBABLE_USER_DATA = "{\"grabbableKey\":{\"grabbable\":true}}";
|
||||||
const QString NOT_GRABBABLE_USER_DATA = "{\"grabbableKey\":{\"grabbable\":false}}";
|
const QString NOT_GRABBABLE_USER_DATA = "{\"grabbableKey\":{\"grabbable\":false}}";
|
||||||
|
|
||||||
static void staticScriptInitializer(ScriptManager* manager) {
|
void staticEntityScriptInitializer(ScriptManager* manager) {
|
||||||
auto scriptEngine = manager->engine().data();
|
auto scriptEngine = manager->engine().data();
|
||||||
|
|
||||||
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
||||||
|
@ -76,7 +76,7 @@ static void staticScriptInitializer(ScriptManager* manager) {
|
||||||
manager->connect(manager, &ScriptManager::releaseEntityPacketSenderMessages, entityScriptingInterface.data(),
|
manager->connect(manager, &ScriptManager::releaseEntityPacketSenderMessages, entityScriptingInterface.data(),
|
||||||
&EntityScriptingInterface::releaseEntityPacketSenderMessages, Qt::DirectConnection);
|
&EntityScriptingInterface::releaseEntityPacketSenderMessages, Qt::DirectConnection);
|
||||||
}
|
}
|
||||||
STATIC_SCRIPT_INITIALIZER(staticScriptInitializer);
|
STATIC_SCRIPT_INITIALIZER(staticEntityScriptInitializer);
|
||||||
|
|
||||||
EntityScriptingInterface::EntityScriptingInterface(bool bidOnSimulationOwnership) :
|
EntityScriptingInterface::EntityScriptingInterface(bool bidOnSimulationOwnership) :
|
||||||
_entityTree(nullptr),
|
_entityTree(nullptr),
|
||||||
|
@ -2433,7 +2433,7 @@ void EntityScriptingInterface::getMeshes(const QUuid& entityID, const ScriptValu
|
||||||
EntityItemPointer entity = static_cast<EntityItemPointer>(_entityTree->findEntityByEntityItemID(entityID));
|
EntityItemPointer entity = static_cast<EntityItemPointer>(_entityTree->findEntityByEntityItemID(entityID));
|
||||||
if (!entity) {
|
if (!entity) {
|
||||||
qCDebug(entities) << "EntityScriptingInterface::getMeshes no entity with ID" << entityID;
|
qCDebug(entities) << "EntityScriptingInterface::getMeshes no entity with ID" << entityID;
|
||||||
ScriptValueList args { engine->undefinedValue(), false };
|
ScriptValueList args{ engine->undefinedValue(), engine->newValue(false) };
|
||||||
callback.call(ScriptValue(), args);
|
callback.call(ScriptValue(), args);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2446,7 +2446,7 @@ void EntityScriptingInterface::getMeshes(const QUuid& entityID, const ScriptValu
|
||||||
ScriptValueList args{ resultAsScriptValue, engine->newValue(true) };
|
ScriptValueList args{ resultAsScriptValue, engine->newValue(true) };
|
||||||
callback.call(ScriptValue(), args);
|
callback.call(ScriptValue(), args);
|
||||||
} else {
|
} else {
|
||||||
ScriptValueList args { engine->undefinedValue(), engine->newValue(false) };
|
ScriptValueList args{ engine->undefinedValue(), engine->newValue(false) };
|
||||||
callback.call(ScriptValue(), args);
|
callback.call(ScriptValue(), args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2542,7 +2542,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void attachDefaultEventHandlers(ScriptManager* manager); // called on first call to Script.addEventHandler
|
void attachDefaultEventHandlers(ScriptManager* manager); // called on first call to Script.addEventHandler
|
||||||
friend void staticScriptInitializer(ScriptManager* manager);
|
friend void staticEntityScriptInitializer(ScriptManager* manager);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void releaseEntityPacketSenderMessages(bool wait);
|
void releaseEntityPacketSenderMessages(bool wait);
|
||||||
|
|
|
@ -114,7 +114,7 @@ ScriptValue jsBindCallback(const ScriptValue& value) {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T this_qobject_cast(ScriptEngine* engine) {
|
T this_qobject_cast(ScriptEngine* engine) {
|
||||||
auto context = engine ? engine->currentContext() : nullptr;
|
auto context = engine ? engine->currentContext() : nullptr;
|
||||||
return scriptvalue_cast<T>(context ? context->thisObject() : ScriptValue::NullValue);
|
return scriptvalue_cast<T>(context ? context->thisObject() : engine ? engine->nullValue() : ScriptValue());
|
||||||
}
|
}
|
||||||
QString toDebugString(QObject* tmp) {
|
QString toDebugString(QObject* tmp) {
|
||||||
QString s;
|
QString s;
|
||||||
|
|
|
@ -7,7 +7,6 @@ if (NOT ANDROID)
|
||||||
target_quazip()
|
target_quazip()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
link_hifi_libraries(shaders)
|
link_hifi_libraries(networking)
|
||||||
include_hifi_library_headers(networking)
|
|
||||||
include_hifi_library_headers(octree)
|
include_hifi_library_headers(octree)
|
||||||
include_hifi_library_headers(shared)
|
include_hifi_library_headers(shared)
|
||||||
|
|
Loading…
Reference in a new issue