Added App::PropertyPrecision
The purpose of this property and the associated property item is to properly display floating value of many decimal points, such as Precision::Confusion()
This commit is contained in:
committed by
Yorik van Havre
parent
c14a588264
commit
18a7e73bf6
@@ -1097,6 +1097,27 @@ void PropertyFloatConstraint::setPyObject(PyObject *value)
|
||||
}
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyPrecision
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TYPESYSTEM_SOURCE(App::PropertyPrecision, App::PropertyFloatConstraint);
|
||||
|
||||
//**************************************************************************
|
||||
// Construction/Destruction
|
||||
//
|
||||
const PropertyFloatConstraint::Constraints PrecisionStandard = {0.0,DBL_MAX,0.001};
|
||||
|
||||
PropertyPrecision::PropertyPrecision()
|
||||
{
|
||||
setConstraints(&PrecisionStandard);
|
||||
}
|
||||
|
||||
PropertyPrecision::~PropertyPrecision()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyFloatList
|
||||
|
||||
Reference in New Issue
Block a user