diff -r ba4200437179 -r a88cf5a32246 src/miscallenous.cpp --- a/src/miscallenous.cpp Sun Oct 04 06:59:09 2015 +0300 +++ b/src/miscallenous.cpp Sun Oct 04 13:19:45 2015 +0300 @@ -88,10 +88,13 @@ ConfigOption (int Grid = 1) ConfigOption (float GridCoarseCoordinateSnap = 5.0f) ConfigOption (float GridCoarseAngleSnap = 45.0f) +ConfigOption (float GridCoarseBezierCurveSegments = 8) ConfigOption (float GridMediumCoordinateSnap = 1.0f) ConfigOption (float GridMediumAngleSnap = 22.5f) +ConfigOption (float GridMediumBezierCurveSegments = 16) ConfigOption (float GridFineCoordinateSnap = 0.1f) ConfigOption (float GridFineAngleSnap = 7.5f) +ConfigOption (float GridFineBezierCurveSegments = 32) ConfigOption (int RotationPointType = 0) ConfigOption (Vertex CustomRotationPoint = Origin) @@ -123,6 +126,19 @@ return 45.0f; } +float gridBezierCurveSegments() +{ + ConfigurationValueBag* config = g_win->configBag(); + + switch (config->grid()) + { + default: + case Grid::Coarse: return config->gridCoarseBezierCurveSegments(); + case Grid::Medium: return config->gridMediumBezierCurveSegments(); + case Grid::Fine: return config->gridFineBezierCurveSegments(); + } +} + // ============================================================================= // // Snap the given coordinate value on the current grid's given axis.