Set joint state for the mouse RayPick of the EntityTreeRenderer

This commit is contained in:
sabrina-shanman 2018-09-27 10:58:21 -07:00
parent b68031b969
commit bb38efa061

View file

@ -2273,6 +2273,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
{
auto mouseRayPick = std::make_shared<RayPick>(PickFilter(PickScriptingInterface::PICK_ENTITIES() | PickScriptingInterface::PICK_INCLUDE_NONCOLLIDABLE()), 0.0f, true);
mouseRayPick->parentTransform = std::make_shared<MouseTransformNode>();
mouseRayPick->setJointState(PickQuery::JOINT_STATE_MOUSE);
auto mouseRayPickID = DependencyManager::get<PickManager>()->addPick(PickQuery::Ray, mouseRayPick);
DependencyManager::get<EntityTreeRenderer>()->setMouseRayPickID(mouseRayPickID);
}