From fa5cba5deddbfb055422304e29f38696d3ecb239 Mon Sep 17 00:00:00 2001 From: Chromium <62724067+Chromum@users.noreply.github.com> Date: Sun, 4 May 2025 10:14:54 +0100 Subject: [PATCH] BEGONE stupid fuckin warnings --- Editor/Scripts/Editor/Batching/Window/BatchingWindow.cs | 3 --- Editor/Scripts/Editor/ImageProcessingGraphAsset.cs | 6 ++---- .../ImageProcessingGraphDocumentationWindow.cs | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Editor/Scripts/Editor/Batching/Window/BatchingWindow.cs b/Editor/Scripts/Editor/Batching/Window/BatchingWindow.cs index 7e77ab1..d9dbc85 100644 --- a/Editor/Scripts/Editor/Batching/Window/BatchingWindow.cs +++ b/Editor/Scripts/Editor/Batching/Window/BatchingWindow.cs @@ -5,10 +5,7 @@ using UnityEngine.UIElements; using System.Collections.Generic; using ImageProcessingGraph.Editor.Nodes.Types.Image.Variable_Node; -using UnityEditor; using UnityEditor.UIElements; -using UnityEngine; -using UnityEngine.UIElements; public class BatchingWindow : EditorWindow { diff --git a/Editor/Scripts/Editor/ImageProcessingGraphAsset.cs b/Editor/Scripts/Editor/ImageProcessingGraphAsset.cs index 2eb24fb..1588224 100644 --- a/Editor/Scripts/Editor/ImageProcessingGraphAsset.cs +++ b/Editor/Scripts/Editor/ImageProcessingGraphAsset.cs @@ -58,21 +58,19 @@ namespace ImageProcessingGraph.Editor runOrder = GetExecutionOrder(this.nodes, this.connections); - bool failed = false; + foreach (var VARIABLE in runOrder) { if (!VARIABLE.RunNode()) { - failed = true; break; } } foreach (var VARIABLE in runOrder) { - if(!VARIABLE.RunCleanUp()) - failed = true; + VARIABLE.RunCleanUp(); } stopwatch.Stop(); diff --git a/Editor/Scripts/Editor/Windows/Documentation/ImageProcessingGraphDocumentationWindow.cs b/Editor/Scripts/Editor/Windows/Documentation/ImageProcessingGraphDocumentationWindow.cs index 21c33d6..e38a973 100644 --- a/Editor/Scripts/Editor/Windows/Documentation/ImageProcessingGraphDocumentationWindow.cs +++ b/Editor/Scripts/Editor/Windows/Documentation/ImageProcessingGraphDocumentationWindow.cs @@ -5,7 +5,7 @@ using UnityEngine.UIElements; public class ImageProcessingGraphDocumentationWindow : EditorWindow { [SerializeField] - private VisualTreeAsset m_VisualTreeAsset = default; + // private VisualTreeAsset m_VisualTreeAsset = default; [MenuItem("Window/UI Toolkit/ImageProcessingGraphDocumentationWindow")] public static void ShowExample()