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 | // Compute ray to find selected nodes later on. We can't use the pre-computed ray in Application because it centers | 39 | // Compute ray to find selected nodes later on. We can't use the pre-computed ray in Application because it centers |
| 40 | // itself after the cursor disappears. | 40 | // itself after the cursor disappears. |
| 41 | Application* application = Application::getInstance(); | 41 | PickRay pickRay = qApp->computePickRay(); |
| 42 | PickRay pickRay = application->getCamera()->computePickRay(application->getTrueMouseX(), | ||
| 43 | application->getTrueMouseY()); | ||
| 44 | 42 | ||
| 45 | // Variables to keep track of the selected node and properties to draw the cube later if needed | 43 | // Variables to keep track of the selected node and properties to draw the cube later if needed |
| 46 | Node* selectedNode = NULL; | 44 | Node* selectedNode = NULL; |