Sketcher: clean-up geometry history configuation
Keep code almost 1:1 with LS3 branch, just ensure the variable is initialized and code is documented
This commit is contained in:
committed by
Chris Hennes
parent
b2619f339c
commit
973ad7b5c8
@@ -127,7 +127,7 @@ FC_LOG_LEVEL_INIT("Sketch", true, true)
|
||||
|
||||
PROPERTY_SOURCE(Sketcher::SketchObject, Part::Part2DObject)
|
||||
|
||||
SketchObject::SketchObject()
|
||||
SketchObject::SketchObject() : geoLastId(0)
|
||||
{
|
||||
ADD_PROPERTY_TYPE(
|
||||
Geometry, (nullptr), "Sketch", (App::PropertyType)(App::Prop_None), "Sketch geometry");
|
||||
@@ -164,9 +164,6 @@ SketchObject::SketchObject()
|
||||
"Sketch",
|
||||
(App::PropertyType)(App::Prop_None),
|
||||
"Tolerance for fitting arcs of projected external geometry");
|
||||
geoLastId = 0;
|
||||
geoHistoryLevel = 1;
|
||||
|
||||
ADD_PROPERTY(InternalShape,
|
||||
(Part::TopoShape()));
|
||||
ADD_PROPERTY_TYPE(MakeInternals,
|
||||
|
||||
@@ -1062,7 +1062,8 @@ private:
|
||||
// mapping from Geometry[*].Id to index of Geometry
|
||||
std::map<long, int> geoMap;
|
||||
|
||||
int geoHistoryLevel;
|
||||
// keep geoHistoryLevel and the code who ise it for easier porting of stuff from LS3 branch
|
||||
const int geoHistoryLevel = 1;
|
||||
std::vector<long> geoIdHistory;
|
||||
long geoLastId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user