diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index d96e0a4758..ff9559e75d 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -301,7 +301,7 @@ void SubShapeBinder::setupObject() { checkPropertyStatus(); } -void SubShapeBinder::update(int options) { +void SubShapeBinder::update(SubShapeBinder::UpdateOption options) { Part::TopoShape result; std::vector shapes; std::vector shapeMats; diff --git a/src/Mod/PartDesign/App/ShapeBinder.h b/src/Mod/PartDesign/App/ShapeBinder.h index 5d8aca2b32..d5c60e0b40 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.h +++ b/src/Mod/PartDesign/App/ShapeBinder.h @@ -94,10 +94,11 @@ public: App::PropertyInteger _Version; enum UpdateOption { + UpdateNone = 0, UpdateInit = 1, UpdateForced = 2, }; - void update(int options=0); + void update(UpdateOption options = UpdateNone); virtual int canLoadPartial() const override { return PartialLoad.getValue()?1:0;