- Fixed regression of commit ec7840f36b that caused surface comments created with "// <text>" to throw an error

This commit is contained in:
Nils Hausfeld
2024-12-07 19:15:14 +01:00
parent 82453acf53
commit e9243d0358

View File

@@ -1502,9 +1502,10 @@ namespace FlaxEditor.Surface.Archetypes
{
data = new object[]
{
filterText.Substring(2),
new Color(1.0f, 1.0f, 1.0f, 0.2f),
new Float2(400.0f, 400.0f),
filterText.Substring(2), // Title
new Color(1.0f, 1.0f, 1.0f, 0.2f), // Color
new Float2(400.0f, 400.0f), // Size
-1, // Order
};
return true;
}