mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 15:23:05 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi into safe-avatar-list-access
This commit is contained in:
commit
c2a4aab7c3
14 changed files with 24 additions and 37 deletions
|
@ -11,7 +11,7 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
Script.include("../libraries/utils.js");
|
Script.include("libraries/utils.js");
|
||||||
Script.include("breakdanceCore.js");
|
Script.include("breakdanceCore.js");
|
||||||
breakdanceStart();
|
breakdanceStart();
|
||||||
Script.update.connect(breakdanceUpdate);
|
Script.update.connect(breakdanceUpdate);
|
|
@ -12,7 +12,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
Script.include("../toys/breakdanceCore.js");
|
Script.include("../breakdanceCore.js");
|
||||||
Script.include("../libraries/utils.js");
|
Script.include("../libraries/utils.js");
|
||||||
|
|
||||||
var _this;
|
var _this;
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
// FIXME Script paths have to be relative to the caller, in this case libraries/OmniTool.js
|
// FIXME Script paths have to be relative to the caller, in this case libraries/OmniTool.js
|
||||||
Script.include("../entityScripts/magBalls/constants.js");
|
Script.include("../magBalls/constants.js");
|
||||||
Script.include("../entityScripts/magBalls/graph.js");
|
Script.include("../magBalls/graph.js");
|
||||||
Script.include("../entityScripts/magBalls/edgeSpring.js");
|
Script.include("../magBalls/edgeSpring.js");
|
||||||
Script.include("../entityScripts/magBalls/magBalls.js");
|
Script.include("../magBalls/magBalls.js");
|
||||||
Script.include("avatarRelativeOverlays.js");
|
Script.include("avatarRelativeOverlays.js");
|
||||||
|
|
||||||
OmniToolModuleType = "MagBallsController"
|
OmniToolModuleType = "MagBallsController"
|
|
@ -46,6 +46,7 @@ public slots:
|
||||||
// setters for camera attributes
|
// setters for camera attributes
|
||||||
void setPosition(const glm::vec3& position) { _viewFrustum.setPosition(position); }
|
void setPosition(const glm::vec3& position) { _viewFrustum.setPosition(position); }
|
||||||
void setOrientation(const glm::quat& orientation) { _viewFrustum.setOrientation(orientation); }
|
void setOrientation(const glm::quat& orientation) { _viewFrustum.setOrientation(orientation); }
|
||||||
|
void setKeyholeRadius(float keyholdRadius) { _viewFrustum.setKeyholeRadius(keyholdRadius); }
|
||||||
|
|
||||||
// setters for LOD and PPS
|
// setters for LOD and PPS
|
||||||
void setVoxelSizeScale(float sizeScale) { _voxelSizeScale = sizeScale; }
|
void setVoxelSizeScale(float sizeScale) { _voxelSizeScale = sizeScale; }
|
||||||
|
|
|
@ -43,11 +43,9 @@ bool GlWindow::makeCurrent() {
|
||||||
qDebug() << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER));
|
qDebug() << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER));
|
||||||
});
|
});
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG
|
QOpenGLContext * currentContext = QOpenGLContext::currentContext();
|
||||||
QOpenGLContext * currentContext =
|
|
||||||
#endif
|
|
||||||
QOpenGLContext::currentContext();
|
|
||||||
Q_ASSERT(_context == currentContext);
|
Q_ASSERT(_context == currentContext);
|
||||||
|
|
||||||
return makeCurrentResult;
|
return makeCurrentResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -147,7 +147,7 @@ void MeshPartPayload::bindMaterial(gpu::Batch& batch, const ModelRender::Locatio
|
||||||
batch.setResourceTexture(ModelRender::DIFFUSE_MAP_SLOT, textureCache->getGrayTexture());
|
batch.setResourceTexture(ModelRender::DIFFUSE_MAP_SLOT, textureCache->getGrayTexture());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
batch.setResourceTexture(ModelRender::DIFFUSE_MAP_SLOT, textureCache->getGrayTexture());
|
batch.setResourceTexture(ModelRender::DIFFUSE_MAP_SLOT, textureCache->getWhiteTexture());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normal map
|
// Normal map
|
||||||
|
|
|
@ -108,13 +108,10 @@ void VrMenu::addMenu(QMenu* menu) {
|
||||||
Q_ASSERT(false);
|
Q_ASSERT(false);
|
||||||
}
|
}
|
||||||
QVariant returnedValue;
|
QVariant returnedValue;
|
||||||
#ifndef QT_NO_DEBUG
|
bool invokeResult = QMetaObject::invokeMethod(this, "addMenu", Qt::DirectConnection,
|
||||||
bool invokeResult =
|
Q_RETURN_ARG(QVariant, returnedValue),
|
||||||
#endif
|
Q_ARG(QVariant, QVariant::fromValue(qmlParent)),
|
||||||
QMetaObject::invokeMethod(this, "addMenu", Qt::DirectConnection,
|
Q_ARG(QVariant, QVariant::fromValue(menu->title())));
|
||||||
Q_RETURN_ARG(QVariant, returnedValue),
|
|
||||||
Q_ARG(QVariant, QVariant::fromValue(qmlParent)),
|
|
||||||
Q_ARG(QVariant, QVariant::fromValue(menu->title())));
|
|
||||||
Q_ASSERT(invokeResult);
|
Q_ASSERT(invokeResult);
|
||||||
QObject* result = returnedValue.value<QObject*>();
|
QObject* result = returnedValue.value<QObject*>();
|
||||||
Q_ASSERT(result);
|
Q_ASSERT(result);
|
||||||
|
@ -150,13 +147,11 @@ void VrMenu::addAction(QMenu* menu, QAction* action) {
|
||||||
QObject* menuQml = findMenuObject(userData->uuid.toString());
|
QObject* menuQml = findMenuObject(userData->uuid.toString());
|
||||||
Q_ASSERT(menuQml);
|
Q_ASSERT(menuQml);
|
||||||
QVariant returnedValue;
|
QVariant returnedValue;
|
||||||
#ifndef QT_NO_DEBUG
|
|
||||||
bool invokeResult =
|
bool invokeResult = QMetaObject::invokeMethod(this, "addItem", Qt::DirectConnection,
|
||||||
#endif
|
Q_RETURN_ARG(QVariant, returnedValue),
|
||||||
QMetaObject::invokeMethod(this, "addItem", Qt::DirectConnection,
|
Q_ARG(QVariant, QVariant::fromValue(menuQml)),
|
||||||
Q_RETURN_ARG(QVariant, returnedValue),
|
Q_ARG(QVariant, QVariant::fromValue(action->text())));
|
||||||
Q_ARG(QVariant, QVariant::fromValue(menuQml)),
|
|
||||||
Q_ARG(QVariant, QVariant::fromValue(action->text())));
|
|
||||||
Q_ASSERT(invokeResult);
|
Q_ASSERT(invokeResult);
|
||||||
QObject* result = returnedValue.value<QObject*>();
|
QObject* result = returnedValue.value<QObject*>();
|
||||||
Q_ASSERT(result);
|
Q_ASSERT(result);
|
||||||
|
@ -173,14 +168,11 @@ void VrMenu::insertAction(QAction* before, QAction* action) {
|
||||||
}
|
}
|
||||||
QObject* menu = beforeQml->parent();
|
QObject* menu = beforeQml->parent();
|
||||||
QVariant returnedValue;
|
QVariant returnedValue;
|
||||||
#ifndef QT_NO_DEBUG
|
bool invokeResult = QMetaObject::invokeMethod(this, "insertItem", Qt::DirectConnection,
|
||||||
bool invokeResult =
|
Q_RETURN_ARG(QVariant, returnedValue),
|
||||||
#endif
|
Q_ARG(QVariant, QVariant::fromValue(menu)),
|
||||||
QMetaObject::invokeMethod(this, "insertItem", Qt::DirectConnection,
|
Q_ARG(QVariant, QVariant::fromValue(beforeQml)),
|
||||||
Q_RETURN_ARG(QVariant, returnedValue),
|
Q_ARG(QVariant, QVariant::fromValue(action->text())));
|
||||||
Q_ARG(QVariant, QVariant::fromValue(menu)),
|
|
||||||
Q_ARG(QVariant, QVariant::fromValue(beforeQml)),
|
|
||||||
Q_ARG(QVariant, QVariant::fromValue(action->text())));
|
|
||||||
Q_ASSERT(invokeResult);
|
Q_ASSERT(invokeResult);
|
||||||
QObject* result = returnedValue.value<QObject*>();
|
QObject* result = returnedValue.value<QObject*>();
|
||||||
Q_ASSERT(result);
|
Q_ASSERT(result);
|
||||||
|
@ -199,9 +191,5 @@ void VrMenu::removeAction(QAction* action) {
|
||||||
bool invokeResult = QMetaObject::invokeMethod(this, "removeItem", Qt::DirectConnection,
|
bool invokeResult = QMetaObject::invokeMethod(this, "removeItem", Qt::DirectConnection,
|
||||||
Q_ARG(QVariant, QVariant::fromValue(menu)),
|
Q_ARG(QVariant, QVariant::fromValue(menu)),
|
||||||
Q_ARG(QVariant, QVariant::fromValue(item)));
|
Q_ARG(QVariant, QVariant::fromValue(item)));
|
||||||
#ifndef QT_NO_DEBUG
|
|
||||||
Q_ASSERT(invokeResult);
|
Q_ASSERT(invokeResult);
|
||||||
#else
|
|
||||||
Q_UNUSED(invokeResult);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue