mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
wrong pickray function
This commit is contained in:
parent
eaaaa0687c
commit
649940de24
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ void NodeBounds::draw() {
|
|||
// Compute ray to find selected nodes later on. We can't use the pre-computed ray in Application because it centers
|
||||
// itself after the cursor disappears.
|
||||
Application* application = Application::getInstance();
|
||||
PickRay pickRay = application->getCamera()->computeViewPickRay(application->getTrueMouseX(), application->getTrueMouseY());
|
||||
PickRay pickRay = application->getCamera()->computePickRay(application->getTrueMouseX(),
|
||||
application->getTrueMouseY());
|
||||
|
||||
// Variables to keep track of the selected node and properties to draw the cube later if needed
|
||||
Node* selectedNode = NULL;
|
||||
|
|
Loading…
Reference in a new issue