tomara-x / quartz

visual programming and dsp playground
https://codeberg.org/tomara-x/quartz
Apache License 2.0
90 stars 3 forks source link

figure out the resaving #32

Closed tomara-x closed 9 months ago

tomara-x commented 9 months ago

when saving a scene that's loaded from file, the parentless entities originally, now have a parent. figure out if you wanna keep that or remove it

tomara-x commented 9 months ago

poyfect!

$ diff resave.scn.ron original.scn.ron 
4c4
<     7: (
---
>     6: (
52,53c52,53
<           8,
<           24,
---
>           7,
>           26,
62a63
>         "quartz::components::Op": ("empty"),
66d66
<         "quartz::components::Op": ("empty"),
76c76
<     8: (
---
>     7: (
189c189
<         "bevy_hierarchy::components::parent::Parent": (7),
---
>         "bevy_hierarchy::components::parent::Parent": (6),
194c194
<     9: (
---
>     8: (
242,244c242,244
<           10,
<           20,
<           23,
---
>           9,
>           21,
>           25,
253a254
>         "quartz::components::Op": ("empty"),
257d257
<         "quartz::components::Op": ("empty"),
267c267
<     10: (
---
>     9: (
380c380
<         "bevy_hierarchy::components::parent::Parent": (9),
---
>         "bevy_hierarchy::components::parent::Parent": (8),
385c385
<     11: (
---
>     10: (
433c433
<           12,
---
>           11,
435c435
<           19,
---
>           20,
444a445
>         "quartz::components::Op": ("empty"),
448d448
<         "quartz::components::Op": ("empty"),
458c458
<     12: (
---
>     11: (
571c571
<         "bevy_hierarchy::components::parent::Parent": (11),
---
>         "bevy_hierarchy::components::parent::Parent": (10),
576c576
<     13: (
---
>     12: (
624c624
<           14,
---
>           13,
634a635
>         "quartz::components::Op": ("empty"),
638d638
<         "quartz::components::Op": ("empty"),
648c648
<     14: (
---
>     13: (
761c761
<         "bevy_hierarchy::components::parent::Parent": (13),
---
>         "bevy_hierarchy::components::parent::Parent": (12),
813c813
<         "bevy_hierarchy::components::parent::Parent": (13),
---
>         "bevy_hierarchy::components::parent::Parent": (12),
879c879
<         "bevy_hierarchy::components::parent::Parent": (11),
---
>         "bevy_hierarchy::components::parent::Parent": (10),
893c893
<           bh_parent: 13,
---
>           bh_parent: 12,
1048c1048
<     19: (
---
>     20: (
1095c1095
<         "bevy_hierarchy::components::parent::Parent": (11),
---
>         "bevy_hierarchy::components::parent::Parent": (10),
1097c1097
<           21,
---
>           22,
1108c1108
<           wh: 20,
---
>           wh: 21,
1114c1114
<     20: (
---
>     21: (
1161c1161
<         "bevy_hierarchy::components::parent::Parent": (9),
---
>         "bevy_hierarchy::components::parent::Parent": (8),
1163c1163
<           22,
---
>           23,
1174,1175c1174,1175
<           bh: 19,
<           bh_parent: 11,
---
>           bh: 20,
>           bh_parent: 10,
1184c1184
<     21: (
---
>     22: (
1252c1252
<         "bevy_hierarchy::components::parent::Parent": (19),
---
>         "bevy_hierarchy::components::parent::Parent": (20),
1257c1257
<     22: (
---
>     23: (
1325c1325
<         "bevy_hierarchy::components::parent::Parent": (20),
---
>         "bevy_hierarchy::components::parent::Parent": (21),
1330c1330
<     23: (
---
>     25: (
1377c1377
<         "bevy_hierarchy::components::parent::Parent": (9),
---
>         "bevy_hierarchy::components::parent::Parent": (8),
1379c1379
<           25,
---
>           27,
1390c1390
<           wh: 24,
---
>           wh: 26,
1396c1396
<     24: (
---
>     26: (
1443c1443
<         "bevy_hierarchy::components::parent::Parent": (7),
---
>         "bevy_hierarchy::components::parent::Parent": (6),
1445c1445
<           26,
---
>           28,
1456,1457c1456,1457
<           bh: 23,
<           bh_parent: 9,
---
>           bh: 25,
>           bh_parent: 8,
1466c1466
<     25: (
---
>     27: (
1534c1534
<         "bevy_hierarchy::components::parent::Parent": (23),
---
>         "bevy_hierarchy::components::parent::Parent": (25),
1538c1538
<     26: (
---
>     28: (
1606c1606
<         "bevy_hierarchy::components::parent::Parent": (24),
---
>         "bevy_hierarchy::components::parent::Parent": (26),