From 19cb115fd01950dcf15dd169eabf62aa60e34d1d Mon Sep 17 00:00:00 2001 From: lackofbindings <115063831+lackofbindings@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:37:55 -0700 Subject: [PATCH] preserve gradient mode during copy --- .../sh.orels.shaders.inspector/Editor/Drawers/GradientDrawer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/sh.orels.shaders.inspector/Editor/Drawers/GradientDrawer.cs b/Packages/sh.orels.shaders.inspector/Editor/Drawers/GradientDrawer.cs index b893382..b629a63 100644 --- a/Packages/sh.orels.shaders.inspector/Editor/Drawers/GradientDrawer.cs +++ b/Packages/sh.orels.shaders.inspector/Editor/Drawers/GradientDrawer.cs @@ -71,6 +71,7 @@ public bool OnGUI(MaterialEditor editor, MaterialProperty[] properties, Material if (hasSavedGradient) { oldGradCopy.SetKeys(savedGradient.colorKeys, savedGradient.alphaKeys); + oldGradCopy.mode = savedGradient.mode; } else {