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

Method drawCloneButton

source/MRViewer/MRRibbonMenu.cpp:1177–1190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175}
1176
1177bool RibbonMenu::drawCloneButton( const std::vector<std::shared_ptr<Object>>& selected )
1178{
1179 bool someChanges = false;
1180 if ( selected.empty() )
1181 return someChanges;
1182
1183 if ( UI::button( _tr( "Clone" ), Vector2f( -1, 0 ) ) )
1184 {
1185 cloneTree( selected );
1186 someChanges = true;
1187 }
1188
1189 return someChanges;
1190}
1191
1192bool RibbonMenu::drawSelectSubtreeButton( const std::vector<std::shared_ptr<Object>>& selected )
1193{

Callers 1

drawSceneContextMenu_Method · 0.80

Calls 2

buttonFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected