From 01d6e6b5cc9f1e6455f3a99fe973dd3301cc4cec Mon Sep 17 00:00:00 2001 From: bd_ Date: Sun, 18 Aug 2024 13:27:19 -0700 Subject: [PATCH] chore: don't disable sub-options when a preview plugin is disabled. (#338) Closes: #314 --- CHANGELOG.md | 1 + Editor/PreviewSystem/UI/PreviewPrefsUI.cs | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e50cdf..ed571a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#330] Preview objects are now hidden by placing them in a hidden subscene, instead of harmony patching the hierarchy. This should improve stability in general. - [#335] Skip preview rendering on all cameras except the scene view camera and the VRCSDK thumbnail camera. +- [#338] Don't disable sub-options when a preview plugin is disabled. ### Removed diff --git a/Editor/PreviewSystem/UI/PreviewPrefsUI.cs b/Editor/PreviewSystem/UI/PreviewPrefsUI.cs index b3ac133..1d9e757 100644 --- a/Editor/PreviewSystem/UI/PreviewPrefsUI.cs +++ b/Editor/PreviewSystem/UI/PreviewPrefsUI.cs @@ -215,10 +215,6 @@ internal void BindItem(ItemData itemData) _isPass = itemData.IsPass; _qualifiedName = itemData.QualifiedName; - var isEnabled = !itemData.IsPass || - PreviewPrefs.instance.IsPreviewPluginEnabled(itemData.PluginQualifiedName); - _toggle.SetEnabled(isEnabled); - if (itemData.IsPass) _toggle.AddToClassList("ndmf-pass-item"); else