From 1a58e5883a405226fbe1af4017a70ce1ebc2500c Mon Sep 17 00:00:00 2001 From: Jeremy Bullock Date: Sep 15 2017 05:41:27 +0000 Subject: Move AutoClose Value to TEnv (#1467) --- diff --git a/toonz/sources/common/tvectorimage/tl2lautocloser.cpp b/toonz/sources/common/tvectorimage/tl2lautocloser.cpp index f7dbf98..5ed14af 100644 --- a/toonz/sources/common/tvectorimage/tl2lautocloser.cpp +++ b/toonz/sources/common/tvectorimage/tl2lautocloser.cpp @@ -3,12 +3,14 @@ #include "tl2lautocloser.h" #include "tgl.h" - +#include "tenv.h" #include "tvectorimage.h" #include "tstroke.h" #include +TEnv::DoubleVar VectorCloseValue("VectorCloseValue", 5); + //============================================================================= #ifdef _WIN32 @@ -107,7 +109,7 @@ struct StrokePointSet { TStroke *stroke; std::vector points; StrokePointSet(TStroke *stroke_ = 0) : stroke(stroke_) { - const double inc = 5; + const double inc = VectorCloseValue; if (stroke_) { double length = stroke->getLength(); double s = 0;