From c5f09b99b393d59dd8fb184526ad4c39620b3f15 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Thu, 21 Nov 2024 16:03:58 -0800 Subject: [PATCH] Add reminder to reconsider global element serials --- app-proto/src/assembly.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app-proto/src/assembly.rs b/app-proto/src/assembly.rs index a00081a..92eaa62 100644 --- a/app-proto/src/assembly.rs +++ b/app-proto/src/assembly.rs @@ -13,6 +13,11 @@ pub type ConstraintKey = usize; pub type ElementColor = [f32; 3]; +/* KLUDGE */ +// we should reconsider this design when we build a system for switching between +// assemblies. at that point, we might want to switch to hierarchical keys, +// where each each element has a key that identifies it within its assembly and +// each assembly has a key that identifies it within the sesssion static NEXT_ELEMENT_SERIAL: AtomicU64 = AtomicU64::new(0); #[derive(Clone, PartialEq)]