Mesh: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -29,8 +29,10 @@
|
||||
|
||||
namespace Mesh
|
||||
{
|
||||
const App::PropertyIntegerConstraint::Constraints intSampling = {0, INT_MAX, 1};
|
||||
const App::PropertyLength::Constraints floatRange = {0.0, FLT_MAX, 1.0};
|
||||
const App::PropertyIntegerConstraint::Constraints intSampling = {0,
|
||||
std::numeric_limits<int>::max(),
|
||||
1};
|
||||
const App::PropertyLength::Constraints floatRange = {0.0, std::numeric_limits<float>::max(), 1.0};
|
||||
} // namespace Mesh
|
||||
|
||||
using namespace Mesh;
|
||||
|
||||
Reference in New Issue
Block a user