diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index db89b0a9cd..8bb362b9cb 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2271,8 +2271,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo // Setup the mouse ray pick and related operators { - auto mouseRayPick = std::make_shared(glm::vec3(), Vectors::UP, - PickFilter(PickScriptingInterface::PICK_ENTITIES() | PickScriptingInterface::PICK_INCLUDE_NONCOLLIDABLE()), 0.0f, true); + auto mouseRayPick = std::make_shared(PickFilter(PickScriptingInterface::PICK_ENTITIES() | PickScriptingInterface::PICK_INCLUDE_NONCOLLIDABLE()), 0.0f, true); mouseRayPick->parentTransform = std::make_shared(); auto mouseRayPickID = DependencyManager::get()->addPick(PickQuery::Ray, mouseRayPick); DependencyManager::get()->setMouseRayPickID(mouseRayPickID); diff --git a/interface/src/raypick/RayPick.h b/interface/src/raypick/RayPick.h index 7c7ea5758a..07e2136864 100644 --- a/interface/src/raypick/RayPick.h +++ b/interface/src/raypick/RayPick.h @@ -70,6 +70,11 @@ public: class RayPick : public Pick { public: + RayPick(const PickFilter& filter, float maxDistance, bool enabled) : + Pick(filter, maxDistance, enabled) { + _mathPick = PickRay(Vectors::ZERO, Vectors::UP); + } + RayPick(glm::vec3 position, glm::vec3 direction, const PickFilter& filter, float maxDistance, bool enabled) : Pick(filter, maxDistance, enabled) { _mathPick = PickRay(position, direction);