| 38 | } |
| 39 | |
| 40 | static void selectObject( const VisualObject* object ) |
| 41 | { |
| 42 | if ( !objectIsSelectable( object ) ) |
| 43 | return; |
| 44 | |
| 45 | // Yes, a dumb cast. We could find the same object in the scene, but it's a waste of time. |
| 46 | // Changing the `RenderObject` constructor parameter to accept a non-const reference requires changing a lot of stuff. |
| 47 | RibbonMenu::instance()->simulateNameTagClickWithKeyboardModifiers( *const_cast<VisualObject*>( object ) ); |
| 48 | } |
| 49 | |
| 50 | static Color getBorderColorForObject( ViewportId viewportId, const VisualObject* object, float alpha ) |
| 51 | { |
no test coverage detected