mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 14:56:57 +02:00
fix build errors
This commit is contained in:
parent
2a1857e9ec
commit
2e4a6ee1b5
1 changed files with 3 additions and 3 deletions
|
@ -346,7 +346,7 @@ void EntityTreeRenderer::reloadEntityScripts() {
|
|||
const auto& renderer = entry.second;
|
||||
const auto& entity = renderer->getEntity();
|
||||
if (!entity->getScript().isEmpty()) {
|
||||
auto scriptEngine = (entity->isLocalEntity() || entity->isMyAvatarEntity()) ? _persistentEntitiesScriptEngine : _nonPersistentEntitiesScriptEngine;
|
||||
auto& scriptEngine = (entity->isLocalEntity() || entity->isMyAvatarEntity()) ? _persistentEntitiesScriptEngine : _nonPersistentEntitiesScriptEngine;
|
||||
scriptEngine->loadEntityScript(entity->getEntityItemID(), resolveScriptURL(entity->getScript()), true);
|
||||
}
|
||||
}
|
||||
|
@ -692,7 +692,7 @@ void EntityTreeRenderer::checkEnterLeaveEntities() {
|
|||
foreach(const EntityItemID& entityID, _currentEntitiesInside) {
|
||||
if (!entitiesContainingAvatar.contains(entityID)) {
|
||||
emit leaveEntity(entityID);
|
||||
auto& entity = getTree()->findEntityByEntityItemID(entityID);
|
||||
auto entity = getTree()->findEntityByEntityItemID(entityID);
|
||||
auto& scriptEngine = (entity->isLocalEntity() || entity->isMyAvatarEntity()) ? _persistentEntitiesScriptEngine : _nonPersistentEntitiesScriptEngine;
|
||||
scriptEngine->callEntityScriptMethod(entityID, "leaveEntity");
|
||||
}
|
||||
|
@ -702,7 +702,7 @@ void EntityTreeRenderer::checkEnterLeaveEntities() {
|
|||
foreach(const EntityItemID& entityID, entitiesContainingAvatar) {
|
||||
if (!_currentEntitiesInside.contains(entityID)) {
|
||||
emit enterEntity(entityID);
|
||||
auto& entity = getTree()->findEntityByEntityItemID(entityID);
|
||||
auto entity = getTree()->findEntityByEntityItemID(entityID);
|
||||
auto& scriptEngine = (entity->isLocalEntity() || entity->isMyAvatarEntity()) ? _persistentEntitiesScriptEngine : _nonPersistentEntitiesScriptEngine;
|
||||
scriptEngine->callEntityScriptMethod(entityID, "enterEntity");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue