This commit is contained in:
2025-04-18 18:42:53 +08:00
parent e15eafe5d4
commit 446eaf90d0
14 changed files with 357 additions and 2 deletions

View File

@@ -214,8 +214,8 @@ void SMatrixInputWidget::UpdateUI()
int32 Index = Row * 4 + Col;
if (NumericEntryBoxes.IsValidIndex(Index) && NumericEntryBoxes[Index].IsValid())
{
// Set value using TOptional<float> instead of SetText or SetValue
NumericEntryBoxes[Index]->SetValue(TOptional<float>(Matrix.M[Row][Col]));
// In UE5.5.4, we need to rebuild the grid panel to update the value
NumericEntryBoxes[Index] = CreateMatrixElementWidget(Row, Col);
}
}
}