Gui: fix some MSVC truncation warnings

See forum: https://forum.freecad.org/viewtopic.php?t=81051
This commit is contained in:
wmayer
2023-09-10 16:19:49 +02:00
committed by wwmayer
parent 4447634c06
commit 4f27591e67
3 changed files with 10 additions and 4 deletions

View File

@@ -1333,7 +1333,7 @@ void View3DInventorViewer::showRotationCenter(bool show)
auto material = new SoMaterial();
material->emissiveColor = SbColor(1, 0, 0);
material->transparency = 0.8;
material->transparency = 0.8F;
auto translation = new SoTranslation();
translation->translation.setValue(center);