| 193 | } |
| 194 | |
| 195 | bool EditorSelectionHistory::previous() { |
| 196 | cleanup_history(); |
| 197 | |
| 198 | if (current_elem_idx > 0) { |
| 199 | current_elem_idx--; |
| 200 | } else { |
| 201 | return false; |
| 202 | } |
| 203 | |
| 204 | return true; |
| 205 | } |
| 206 | |
| 207 | bool EditorSelectionHistory::is_current_inspector_only() const { |
| 208 | if (current_elem_idx < 0 || current_elem_idx >= history.size()) { |
no outgoing calls