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

Method getLastAction

source/MRViewer/MRHistoryStore.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139std::shared_ptr<HistoryAction> HistoryStore::getLastAction( HistoryAction::Type type ) const
140{
141 std::shared_ptr<HistoryAction> action;
142 if ( type == HistoryAction::Type::Undo && firstRedoIndex_ >= 1 && firstRedoIndex_ < stack_.size() + 1 )
143 action = stack_[firstRedoIndex_ - 1];
144 else if ( type == HistoryAction::Type::Redo && firstRedoIndex_ < stack_.size() )
145 action = stack_[firstRedoIndex_];
146 return action;
147}
148
149std::string HistoryStore::getLastActionName( HistoryAction::Type type ) const
150{

Callers 2

getDynamicTooltipMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected