From d8149f064856943df8db1234a8c25747d6841cf1 Mon Sep 17 00:00:00 2001 From: ernisto Date: Sun, 16 Mar 2025 17:58:28 -0300 Subject: [PATCH] fix: make springs and maps update descendants as root update --- src/maps.luau | 4 ++-- src/spring.luau | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/maps.luau b/src/maps.luau index 0f95695..2150939 100644 --- a/src/maps.luau +++ b/src/maps.luau @@ -86,7 +86,7 @@ local function indexes(input: () -> Map, transform: (() -> VI, output_cache[i] = result else -- update source input_nodes[i].cache = v - update_descendants(input_nodes[i]) + update_descendants(input_nodes[i], true) end end end @@ -170,7 +170,7 @@ local function values(input: () -> Map, transform: (VI, () -> else -- update source if cv ~= i then input_nodes[v].cache = i - update_descendants(input_nodes[v]) + update_descendants(input_nodes[v], true) end cur_input_cache[v] = nil diff --git a/src/spring.luau b/src/spring.luau index aaf6789..936a18f 100644 --- a/src/spring.luau +++ b/src/spring.luau @@ -285,7 +285,7 @@ local function update_spring_sources() output.cache = vec6_to_type[typeof(data.source_value)](x0_123, x0_456) end - update_descendants(output) + update_descendants(output, true) end end