From 5313156c3ba52644ac113ffdccf3f43fd64672cb Mon Sep 17 00:00:00 2001 From: SashaRX Date: Thu, 6 Aug 2026 13:45:22 +0200 Subject: [PATCH] Keep UV clamp toggle independently editable --- Editor/Tools/LightmapTransferTool.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Editor/Tools/LightmapTransferTool.cs b/Editor/Tools/LightmapTransferTool.cs index 4e680229..c1258d1d 100644 --- a/Editor/Tools/LightmapTransferTool.cs +++ b/Editor/Tools/LightmapTransferTool.cs @@ -1070,12 +1070,12 @@ void DrawRepackDensityControls() "Fraction of [0,1]² normalized UVs sum to. Lower → safer fit, smaller charts; " + "higher → tighter pack but risk of overflow + downscale."), ctx.TargetUvCoverage, 0.3f, 0.95f); - ctx.ClampLightmapToUnit = EditorGUILayout.ToggleLeft( - new GUIContent("Clamp UV2 to [0,1]", - "Cheap safety net against verts pushed a fraction of a texel outside the unit square."), - ctx.ClampLightmapToUnit); EditorGUI.indentLevel--; } + ctx.ClampLightmapToUnit = EditorGUILayout.ToggleLeft( + new GUIContent("Clamp UV2 to [0,1]", + "Cheap safety net against verts pushed a fraction of a texel outside the unit square."), + ctx.ClampLightmapToUnit); } void DrawRepackCompressionControls()