Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -306,7 +306,7 @@ void CViewportTitleDlg::OnInitDialog()
|
||||
AZ::VR::VREventBus::Handler::BusConnect();
|
||||
|
||||
QFontMetrics metrics({});
|
||||
int width = metrics.boundingRect("-9999.99").width() * m_fieldWidthMultiplier;
|
||||
int width = static_cast<int>(metrics.boundingRect("-9999.99").width() * m_fieldWidthMultiplier);
|
||||
|
||||
m_cameraSpeed->setFixedWidth(width);
|
||||
|
||||
@@ -457,7 +457,7 @@ void CViewportTitleDlg::AddFOVMenus(QMenu* menu, std::function<void(float)> call
|
||||
|
||||
float fov = gSettings.viewports.fDefaultFov;
|
||||
bool ok;
|
||||
float f = customPreset.toDouble(&ok);
|
||||
float f = customPreset.toFloat(&ok);
|
||||
if (ok)
|
||||
{
|
||||
fov = std::max(1.0f, f);
|
||||
@@ -477,7 +477,7 @@ void CViewportTitleDlg::OnMenuFOVCustom()
|
||||
|
||||
if (ok)
|
||||
{
|
||||
m_pViewPane->SetViewportFOV(fov);
|
||||
m_pViewPane->SetViewportFOV(static_cast<float>(fov));
|
||||
|
||||
// Update the custom presets.
|
||||
const QString text = QString::number(fov);
|
||||
@@ -973,12 +973,12 @@ void CViewportTitleDlg::OnAngleSnappingToggled()
|
||||
|
||||
void CViewportTitleDlg::OnGridSpinBoxChanged(double value)
|
||||
{
|
||||
SandboxEditor::SetGridSnappingSize(value);
|
||||
SandboxEditor::SetGridSnappingSize(static_cast<float>(value));
|
||||
}
|
||||
|
||||
void CViewportTitleDlg::OnAngleSpinBoxChanged(double value)
|
||||
{
|
||||
SandboxEditor::SetAngleSnappingSize(value);
|
||||
SandboxEditor::SetAngleSnappingSize(static_cast<float>(value));
|
||||
}
|
||||
|
||||
void CViewportTitleDlg::UpdateOverFlowMenuState()
|
||||
|
||||
Reference in New Issue
Block a user