tomara-x / quartz

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

why the change in entity id in saved scenes #165

Open tomara-x opened 1 month ago

tomara-x commented 1 month ago

makes the diff annoying!

tomara-x commented 1 month ago
@@ -36,7 +36,7 @@
     "quartz::components::Version": ("0.4.0 9337268"),
   },
   entities: {
-    4294967302: (
+    4294967303: (
       components: {
         "bevy_transform::components::transform::Transform": (
           translation: (
@@ -74,7 +74,7 @@
         "quartz::components::Save": (),
       },
     ),
-    4294967303: (
+    4294967304: (
       components: {
         "bevy_transform::components::transform::Transform": (
           translation: (
@@ -141,7 +141,7 @@
         "quartz::components::Vertices": (4),
         "quartz::components::BlackHole": (
           wh: 4294967306,
-          wh_parent: 4294967303,
+          wh_parent: 4294967304,
         ),
         "quartz::components::Save": (),
       },
@@ -175,7 +175,7 @@
         "quartz::components::Vertices": (4),
         "quartz::components::WhiteHole": (
           bh: 4294967305,
-          bh_parent: 4294967302,
+          bh_parent: 4294967303,
           link_types: (0, 0),
           open: false,
         ),
tomara-x commented 1 month ago

oh it's only incremented by one after the second time it's opened, but doesn't happen again after that.. caused by the scene entity that's added when the scene is loaded. then all the other entitities get their index incremented because of that

tomara-x commented 1 month ago

nnnope, something else is going on here

tomara-x commented 1 month ago

a plethora of crimes to investigate 6c8d95a :smiling_imp:

tomara-x commented 1 month ago

for example, what in the fuck is happening in rem? https://github.com/tomara-x/quartz/commit/6c8d95a617be3170e5df746071a0a966dd6a52e5#diff-b144d6ef8452a736afd3a6e02379664193a83bd83601f527f18cd0971eebcc82

it's not that old, last change was with bevy 0.13.2, so why would the order of components be shifting like that?! WHY!