+ fix various warnings with VC12

This commit is contained in:
wmayer
2016-04-16 12:02:58 +02:00
parent a8d37dabbe
commit dfa5972b4b
7 changed files with 10 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ void ViewProviderAddSub::attach(App::DocumentObject* obj) {
else
material->diffuseColor = SbColor(1,0,0);
material->transparency = 0.7;
material->transparency = 0.7f;
auto* pick = new SoPickStyle();
pick->style = SoPickStyle::UNPICKABLE;

View File

@@ -129,7 +129,7 @@ void ViewProviderDatumCoordinateSystem::attach ( App::DocumentObject *obj ) {
getShapeRoot ()->addChild(axisLabelYToZTrans);
SoRotation *rot = new SoRotation();
rot->rotation = SbRotation(SbVec3f(1,1,1), 2*M_PI/3);
rot->rotation = SbRotation(SbVec3f(1,1,1), static_cast<float>(2*M_PI/3));
getShapeRoot ()->addChild(rot);
t = new SoAsciiText();
t->string = "Z";