Commit f3f3ee8
committed
feat: split EditorAlgorithms.hpp into 7 cohesive headers (SYS-W3-05)
Decompose the 2,514-line EditorAlgorithms.hpp into EditorCommandAlgorithms
(857 lines), EditorSelectionAlgorithms (326), EditorTransformAlgorithms
(363), EditorPersistenceAlgorithms (479), EditorEventAlgorithms (308),
EditorPreferencesAlgorithms (238) and EditorUtilityAlgorithms (108),
grouped by verified call-site cross-reference rather than the original
proposal's guess (findParentListAlg/removeFromListAlg moved into Commands,
not Selection, since grep showed every caller is a Commands/Transform
mutator). Every function/struct body is byte-identical, confirmed by a
line-range diff against the original before deleting it; the +165 total
lines are entirely the 7x duplicated pragma/comment/include preamble.
Migrated all 30 files the original grep flagged: 5 were comment-only false
positives needing no change, Macro.cpp's include was dead and removed
outright, and of the 25 real consumers 14 need exactly 1 new header, 8
need 2, 1 needs 3, and the largest (Commands.cpp) needs 4 - no consumer
was left including everything, and no facade header was left behind.
MeshCraft and all 13 affected test targets built clean with zero missing-
include errors. ctest -LE render: 181 tests, 163 passed; the only failures
are the two pre-existing, unrelated exceptions (mc3_json_document_budget
Debug-build timeout, 3 Blender-numpy import tests) plus 14 mcb_*/
mc3togltf_* tests that were simply never built in this reused
cmake-build-debug (spot-built 3 to confirm - pre-existing gap, not a
regression; none consume any Editor*Algorithms.hpp header).1 parent 3a2cb0d commit f3f3ee8
36 files changed
Lines changed: 2801 additions & 2550 deletions
File tree
- include/MeshCraft
- Editor
- src/MeshCraft
- Application
- UI
- Editor
- Renderer
- Scene
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
129 | 150 | | |
130 | 151 | | |
131 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments