Showing the changes to interface/src/ui/NodeBounds.cpp (1 of 35 files). Show all
Unified · Split
| @@ -38,9 +38,7 @@ void NodeBounds::draw() { · 37 unmodified lines | ||
| 38 | 38 | |
| 39 | 39 | // Compute ray to find selected nodes later on. We can't use the pre-computed ray in Application because it centers |
| 40 | 40 | // itself after the cursor disappears. |
| 41 | − Application* application = Application::getInstance(); | |
| 42 | − PickRay pickRay = application->getCamera()->computePickRay(application->getTrueMouseX(), | |
| 43 | − application->getTrueMouseY()); | |
| 41 | + PickRay pickRay = qApp->computePickRay(); | |
| 44 | 42 | |
| 45 | 43 | // Variables to keep track of the selected node and properties to draw the cube later if needed |
| 46 | 44 | Node* selectedNode = NULL; |