From bb38efa061803d325baff4b41ab0b4b0999b47dc Mon Sep 17 00:00:00 2001 From: sabrina-shanman Date: Thu, 27 Sep 2018 10:58:21 -0700 Subject: [PATCH] Set joint state for the mouse RayPick of the EntityTreeRenderer --- interface/src/Application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 8bb362b9cb..35c071b512 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2273,6 +2273,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo { auto mouseRayPick = std::make_shared(PickFilter(PickScriptingInterface::PICK_ENTITIES() | PickScriptingInterface::PICK_INCLUDE_NONCOLLIDABLE()), 0.0f, true); mouseRayPick->parentTransform = std::make_shared(); + mouseRayPick->setJointState(PickQuery::JOINT_STATE_MOUSE); auto mouseRayPickID = DependencyManager::get()->addPick(PickQuery::Ray, mouseRayPick); DependencyManager::get()->setMouseRayPickID(mouseRayPickID); }