mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-18 03:40:54 +00:00
Merge pull request #1248 from marauder2k9-torque/fix-angle-display
Update guiInspectorTypes.cpp
This commit is contained in:
commit
42a852a64d
1 changed files with 7 additions and 7 deletions
|
|
@ -2394,15 +2394,15 @@ void GuiInspectorTypeMatrixRotation::constructEditControlChildren(GuiControl* re
|
|||
|
||||
mCtrlX->setField("AltCommand", angleInput.c_str());
|
||||
mCtrlX->setField("Validate", angleInput.c_str());
|
||||
mCtrlX->setDataField(StringTable->insert("format"), NULL, "%.6f");
|
||||
mCtrlX->setDataField(StringTable->insert("format"), NULL, "%g");
|
||||
|
||||
mCtrlY->setField("AltCommand", angleInput.c_str());
|
||||
mCtrlY->setField("Validate", angleInput.c_str());
|
||||
mCtrlY->setDataField(StringTable->insert("format"), NULL, "%.6f");
|
||||
mCtrlY->setDataField(StringTable->insert("format"), NULL, "%g");
|
||||
|
||||
mCtrlZ->setField("AltCommand", angleInput.c_str());
|
||||
mCtrlZ->setField("Validate", angleInput.c_str());
|
||||
mCtrlZ->setDataField(StringTable->insert("format"), NULL, "%.6f");
|
||||
mCtrlZ->setDataField(StringTable->insert("format"), NULL, "%g");
|
||||
}
|
||||
|
||||
void GuiInspectorTypeMatrixRotation::updateValue()
|
||||
|
|
@ -2424,19 +2424,19 @@ void GuiInspectorTypeMatrixRotation::updateValue()
|
|||
if (elementCount > 0)
|
||||
{
|
||||
char szBuffer[64];
|
||||
dSprintf(szBuffer, 64, "%.6f", eulAng.x);
|
||||
dSprintf(szBuffer, 64, "%g", eulAng.x);
|
||||
mCtrlX->setText(szBuffer);
|
||||
}
|
||||
if (elementCount > 1)
|
||||
{
|
||||
char szBuffer[64];
|
||||
dSprintf(szBuffer, 64, "%.6f", eulAng.y);
|
||||
dSprintf(szBuffer, 64, "%g", eulAng.y);
|
||||
mCtrlY->setText(szBuffer);
|
||||
}
|
||||
if (elementCount > 2)
|
||||
{
|
||||
char szBuffer[64];
|
||||
dSprintf(szBuffer, 64, "%.6f", eulAng.z);
|
||||
dSprintf(szBuffer, 64, "%g", eulAng.z);
|
||||
mCtrlZ->setText(szBuffer);
|
||||
}
|
||||
|
||||
|
|
@ -2506,7 +2506,7 @@ void GuiInspectorTypeMatrixRotation::updateData()
|
|||
|
||||
StringTableEntry GuiInspectorTypeMatrixRotation::getValue()
|
||||
{
|
||||
String angBuffer = String::ToString("%.6f %.6f %.6f %.6f", angAx.axis.x, angAx.axis.y, angAx.axis.z, angAx.angle);
|
||||
String angBuffer = String::ToString("%g %g %g %g", angAx.axis.x, angAx.axis.y, angAx.axis.z, angAx.angle);
|
||||
return StringTable->insert(angBuffer.c_str());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue