PartDesign: [skip ci] replace int with proper enum type
This commit is contained in:
@@ -301,7 +301,7 @@ void SubShapeBinder::setupObject() {
|
||||
checkPropertyStatus();
|
||||
}
|
||||
|
||||
void SubShapeBinder::update(int options) {
|
||||
void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
|
||||
Part::TopoShape result;
|
||||
std::vector<Part ::TopoShape> shapes;
|
||||
std::vector<const Base::Matrix4D*> shapeMats;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user