mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 21:17:53 +00:00
CCollisionRenderSettingsDialog: Simplify hex string handling
We can do all of this handling within Qt without needing TStrings
This commit is contained in:
@@ -65,15 +65,13 @@ void CCollisionRenderSettingsDialog::SetupWidgets()
|
||||
|
||||
void CCollisionRenderSettingsDialog::OnHideMaskChanged(const QString& NewMask)
|
||||
{
|
||||
TString MaskStr = TO_TSTRING(NewMask);
|
||||
uint64 Mask = (MaskStr.IsHexString() ? MaskStr.ToInt64(16) : 0);
|
||||
const auto Mask = NewMask.toULongLong(nullptr, 16);
|
||||
mpEditor->Viewport()->CollisionRenderSettings().HideMask = Mask;
|
||||
}
|
||||
|
||||
void CCollisionRenderSettingsDialog::OnHighlightMaskChanged(const QString& NewMask)
|
||||
{
|
||||
TString MaskStr = TO_TSTRING(NewMask);
|
||||
uint64 Mask = (MaskStr.IsHexString() ? MaskStr.ToInt64(16) : 0);
|
||||
const auto Mask = NewMask.toULongLong(nullptr, 16);
|
||||
mpEditor->Viewport()->CollisionRenderSettings().HighlightMask = Mask;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user