MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / selectObject

Function selectObject

source/MRViewer/MRRenderDimensions.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static 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
50static Color getBorderColorForObject( ViewportId viewportId, const VisualObject* object, float alpha )
51{

Callers 1

onClickMethod · 0.85

Calls 3

objectIsSelectableFunction · 0.85
instanceFunction · 0.85

Tested by

no test coverage detected