Commit 7957441
committed
fix(sprite): give full_setup's scene step the same refusal shape as the others
Steps 1-3 refuse through Stop(), which returns success/step/message/diagnostics.
A step-4 failure fell through to the success-shaped return with the flag
flipped, so it was the only refusal in the tool with no 'message' and no 'step' -
the reason lived only inside the diagnostics array. The existing test passed
because it asserted on that array; it now asserts on the message and the step
too, which is what let the shape drift in the first place.
The asset fields stay on the failure: by step 4 the slice, the clips and the
controller are all on disk, and the caller needs to know that.1 parent ad89fa9 commit 7957441
2 files changed
Lines changed: 23 additions & 1 deletion
File tree
- MCPForUnity/Editor/Tools/Sprite2D
- TestProjects/UnityMCPTests/Assets/Tests/EditMode/Tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
139 | 157 | | |
140 | 158 | | |
141 | | - | |
| 159 | + | |
142 | 160 | | |
143 | 161 | | |
144 | 162 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1264 | 1268 | | |
1265 | 1269 | | |
1266 | 1270 | | |
| |||
0 commit comments