This commit is contained in:
2025-04-18 18:17:02 +08:00
parent 80fdce96b2
commit e15eafe5d4
18 changed files with 259 additions and 493 deletions

View File

@@ -5,7 +5,7 @@
#include "Widgets/Input/SButton.h"
#include "Widgets/Layout/SBox.h"
#include "Widgets/Layout/SScrollBox.h"
#include "EditorStyleSet.h"
#include "Styling/AppStyle.h"
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
@@ -214,7 +214,8 @@ void SMatrixInputWidget::UpdateUI()
int32 Index = Row * 4 + Col;
if (NumericEntryBoxes.IsValidIndex(Index) && NumericEntryBoxes[Index].IsValid())
{
NumericEntryBoxes[Index]->SetValue(Matrix.M[Row][Col]);
// Set value using TOptional<float> instead of SetText or SetValue
NumericEntryBoxes[Index]->SetValue(TOptional<float>(Matrix.M[Row][Col]));
}
}
}