Fix the float4 colour inspector for CultMath

UnityExtensions no longer has Color.ToFloat4, so MathematicsInspector's
float4 colour field converts back with the bridge's ToCultMath. This is
the only Assembly-CSharp-Editor break; Unity 6000.3.24f1 batchmode now
compiles with no error CS.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-14 17:47:34 +02:00
commit 422b6474ff

View file

@ -1,4 +1,5 @@
using CultMath;
using CultMath.UnityBridge;
using UnityEditor;
using UnityEngine;
using static UnityEditor.EditorGUILayout;
@ -76,7 +77,7 @@ public class Float4ColorInspector : BaseInspector<float4, InspectableColorAttrib
using (new HorizontalScope())
{
GUILayout.Label(label, GUILayout.Width(width));
return ColorField(value.ToColor()).ToFloat4();
return ColorField(value.ToColor()).ToCultMath();
}
}
}