ViewProviderGeometryObject: set default random shape color to false

This commit is contained in:
Arne
2018-04-21 13:51:51 +02:00
parent 8958aaae59
commit 519d02dd00

View File

@@ -77,7 +77,7 @@ const App::PropertyIntegerConstraint::Constraints intPercent = {0,100,1};
ViewProviderGeometryObject::ViewProviderGeometryObject() : pcBoundSwitch(0),pcBoundColor(0)
{
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
bool randomColor = hGrp->GetBool("RandomColor", true);
bool randomColor = hGrp->GetBool("RandomColor", false);
float r,g,b;
if(randomColor){