From e11ef1b04fe7c0eac4c13848ebb0a67a60693b8b Mon Sep 17 00:00:00 2001 From: bd_ Date: Tue, 27 Aug 2024 19:25:59 -0700 Subject: [PATCH] fix: ObjectRegistry is not inherited when refreshing nodes Closes: #349 --- CHANGELOG.md | 1 + Editor/PreviewSystem/Rendering/NodeController.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42b0a23..f7a4669 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### Fixed +- [#351] Fix issue where ObjectRegistry contents are not properly inherited across filter node refreshes. ### Changed diff --git a/Editor/PreviewSystem/Rendering/NodeController.cs b/Editor/PreviewSystem/Rendering/NodeController.cs index 8f99db5..7d860f7 100644 --- a/Editor/PreviewSystem/Rendering/NodeController.cs +++ b/Editor/PreviewSystem/Rendering/NodeController.cs @@ -118,7 +118,8 @@ public async Task Refresh( RenderAspects changes ) { - var registry = ObjectRegistry.Merge(null, proxies.Select(p => p.Item3)); + var registry = ObjectRegistry.Merge(null, proxies.Select(p => p.Item3) + .Append(ObjectRegistry)); var context = new ComputeContext("NodeController (refresh) for " + _filter + " on " + _group.Renderers[0].gameObject.name);