Commit 76ccf48
Rename nodes_in_scene to root_nodes_in_scene, add recursive_nodes_in_scene
Split the scene node query API into two explicit methods:
- root_nodes_in_scene: returns only the top-level nodes directly
referenced by the scene (the original behavior)
- recursive_nodes_in_scene: returns all nodes including descendants
in depth-first order
This fixes a bug where animations targeting child (parented) nodes
were silently skipped because only root nodes were collected.
Update call sites:
- Animator test now uses recursive_nodes_in_scene for correctness
- Example crate simplified by removing manual get_children helper
Co-authored-by: Andreas Streichardt <andreas@mop.koeln>1 parent 956f53d commit 76ccf48
4 files changed
Lines changed: 52 additions & 36 deletions
File tree
- crates
- example/src
- renderling/src
- gltf
- linkage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | 289 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 290 | + | |
312 | 291 | | |
313 | 292 | | |
314 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
458 | 459 | | |
459 | 460 | | |
460 | 461 | | |
461 | | - | |
462 | | - | |
| 462 | + | |
| 463 | + | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
| |||
1236 | 1237 | | |
1237 | 1238 | | |
1238 | 1239 | | |
1239 | | - | |
| 1240 | + | |
1240 | 1241 | | |
1241 | 1242 | | |
1242 | 1243 | | |
1243 | | - | |
| 1244 | + | |
1244 | 1245 | | |
1245 | 1246 | | |
1246 | 1247 | | |
1247 | 1248 | | |
1248 | | - | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1249 | 1276 | | |
1250 | 1277 | | |
1251 | 1278 | | |
1252 | 1279 | | |
1253 | | - | |
| 1280 | + | |
1254 | 1281 | | |
1255 | 1282 | | |
1256 | 1283 | | |
1257 | 1284 | | |
1258 | 1285 | | |
1259 | 1286 | | |
1260 | 1287 | | |
1261 | | - | |
| 1288 | + | |
| 1289 | + | |
1262 | 1290 | | |
1263 | 1291 | | |
1264 | 1292 | | |
| |||
1512 | 1540 | | |
1513 | 1541 | | |
1514 | 1542 | | |
1515 | | - | |
1516 | | - | |
| 1543 | + | |
| 1544 | + | |
1517 | 1545 | | |
1518 | 1546 | | |
1519 | 1547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
750 | 753 | | |
751 | 754 | | |
752 | 755 | | |
| |||
785 | 788 | | |
786 | 789 | | |
787 | 790 | | |
788 | | - | |
| 791 | + | |
789 | 792 | | |
790 | 793 | | |
791 | 794 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| |||
0 commit comments