Click an emotion to Emote:
-
- - - - - - - ++
++
++
++
true
then the pointer generates hover events, otherwise it does not.
+ */
+ Q_INVOKABLE void setDoesHover(unsigned int uid, bool hove) const;
+
/**jsdoc
* Check if a Pointer is associated with the left hand.
* @function Pointers.isLeftHand
diff --git a/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.cpp b/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.cpp
index 1d7fee38eb..90bb83a663 100644
--- a/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.cpp
+++ b/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.cpp
@@ -33,6 +33,7 @@
#include "../Logging.h"
#include "../CompositorHelper.h"
+#include "DesktopPreviewProvider.h"
#include "render-utils/hmd_ui_vert.h"
#include "render-utils/hmd_ui_frag.h"
@@ -254,17 +255,9 @@ void HmdDisplayPlugin::internalPresent() {
swapBuffers();
} else if (_clearPreviewFlag) {
- QImage image;
- if (_vsyncEnabled) {
- image = QImage(PathUtils::resourcesPath() + "images/preview.png");
- } else {
- image = QImage(PathUtils::resourcesPath() + "images/preview-disabled.png");
- }
- image = image.mirrored();
- image = image.convertToFormat(QImage::Format_RGBA8888);
- if (!_previewTexture) {
- _previewTexture = gpu::Texture::createStrict(
+ QImage image = DesktopPreviewProvider::getInstance()->getPreviewDisabledImage(_vsyncEnabled);
+ _previewTexture = gpu::Texture::createStrict(
gpu::Element(gpu::VEC4, gpu::NUINT8, gpu::RGBA),
image.width(), image.height(),
gpu::Texture::MAX_NUM_MIPS,
@@ -274,7 +267,6 @@ void HmdDisplayPlugin::internalPresent() {
_previewTexture->setStoredMipFormat(gpu::Element(gpu::VEC4, gpu::NUINT8, gpu::RGBA));
_previewTexture->assignStoredMip(0, image.byteCount(), image.constBits());
_previewTexture->setAutoGenerateMips(true);
- }
auto viewport = getViewportForSourceSize(uvec2(_previewTexture->getDimensions()));
diff --git a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp
index 827507c3aa..fc1688974c 100644
--- a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp
+++ b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp
@@ -1394,8 +1394,14 @@ void ModelEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& sce
// That is where _currentFrame and _lastAnimated were updated.
if (_animating) {
DETAILED_PROFILE_RANGE(simulation_physics, "Animate");
+
if (!jointsMapped()) {
mapJoints(entity, model->getJointNames());
+ //else the joint have been mapped before but we have a new animation to load
+ } else if (_animation && (_animation->getURL().toString() != entity->getAnimationURL())) {
+ _animation = DependencyManager::getClick an emotion to Emote:
-
- - - - - - - ++
++
++
++