+ introduce proper enum for property status to replace plain integers
This commit is contained in:
@@ -60,7 +60,7 @@ void DressUp::onChanged(const App::Property* prop)
|
||||
{
|
||||
if (prop == &Base) {
|
||||
// if attached to a sketch then mark it as read-only
|
||||
this->Placement.StatusBits.set(2, Base.getValue() != 0);
|
||||
this->Placement.setStatus(App::Property::ReadOnly, Base.getValue() != 0);
|
||||
}
|
||||
|
||||
Feature::onChanged(prop);
|
||||
|
||||
@@ -243,7 +243,7 @@ void SketchBased::onChanged(const App::Property* prop)
|
||||
{
|
||||
if (prop == &Sketch) {
|
||||
// if attached to a sketch then mark it as read-only
|
||||
this->Placement.StatusBits.set(2, Sketch.getValue() != 0);
|
||||
this->Placement.setStatus(App::Property::ReadOnly, Sketch.getValue() != 0);
|
||||
}
|
||||
|
||||
Feature::onChanged(prop);
|
||||
|
||||
@@ -60,7 +60,7 @@ Transformed::Transformed() : rejected(0)
|
||||
{
|
||||
ADD_PROPERTY(Originals,(0));
|
||||
Originals.setSize(0);
|
||||
Placement.StatusBits.set(2, true);
|
||||
Placement.setStatus(App::Property::ReadOnly, true);
|
||||
}
|
||||
|
||||
void Transformed::positionBySupport(void)
|
||||
|
||||
Reference in New Issue
Block a user