Mod: make sure to call the base class' handleChangedPropertyType
This commit is contained in:
@@ -88,6 +88,9 @@ void Mirroring::handleChangedPropertyType(Base::XMLReader &reader, const char *T
|
||||
|
||||
Normal.setValue(v.getValue());
|
||||
}
|
||||
else {
|
||||
Part::Feature::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Mirroring::execute(void)
|
||||
|
||||
@@ -274,6 +274,9 @@ void Part2DObject::handleChangedPropertyType(Base::XMLReader &reader,
|
||||
}
|
||||
this->MapMode.setValue(Attacher::mmFlatFace);
|
||||
}
|
||||
else {
|
||||
Part::Feature::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
void Part2DObject::handleChangedPropertyName(Base::XMLReader &reader,
|
||||
|
||||
@@ -629,6 +629,9 @@ void Thickness::handleChangedPropertyType(Base::XMLReader &reader, const char *T
|
||||
|
||||
Value.setValue(v.getValue());
|
||||
}
|
||||
else {
|
||||
Part::Feature::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Thickness::execute(void)
|
||||
|
||||
@@ -305,6 +305,9 @@ void ViewProvider2DObjectGrid::handleChangedPropertyType(Base::XMLReader &reader
|
||||
floatProp.Restore(reader);
|
||||
static_cast<App::PropertyFloat*>(prop)->setValue(floatProp.getValue());
|
||||
}
|
||||
else {
|
||||
ViewProviderPart::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProvider2DObjectGrid::attach(App::DocumentObject *pcFeat)
|
||||
|
||||
@@ -88,6 +88,9 @@ void Draft::handleChangedPropertyType(Base::XMLReader &reader,
|
||||
v.Restore(reader);
|
||||
Angle.setValue(v.getValue());
|
||||
}
|
||||
else {
|
||||
DressUp::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
short Draft::mustExecute() const
|
||||
|
||||
@@ -514,6 +514,9 @@ void Helix::handleChangedPropertyType(Base::XMLReader& reader, const char* TypeN
|
||||
TurnsProperty.Restore(reader);
|
||||
Turns.setValue(TurnsProperty.getValue());
|
||||
}
|
||||
else {
|
||||
ProfileBased::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
PROPERTY_SOURCE(PartDesign::AdditiveHelix, PartDesign::Helix)
|
||||
|
||||
@@ -200,6 +200,9 @@ void LinearPattern::handleChangedPropertyType(Base::XMLReader& reader, const cha
|
||||
OccurrencesProperty.Restore(reader);
|
||||
Occurrences.setValue(OccurrencesProperty.getValue());
|
||||
}
|
||||
else {
|
||||
Transformed::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -189,6 +189,9 @@ void PolarPattern::handleChangedPropertyType(Base::XMLReader& reader, const char
|
||||
OccurrencesProperty.Restore(reader);
|
||||
Occurrences.setValue(OccurrencesProperty.getValue());
|
||||
}
|
||||
else {
|
||||
Transformed::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -224,6 +224,9 @@ void ShapeBinder::handleChangedPropertyType(Base::XMLReader &reader, const char
|
||||
if (prop == &Support && strcmp(TypeName, "App::PropertyLinkSubList") == 0) {
|
||||
Support.Restore(reader);
|
||||
}
|
||||
else {
|
||||
Part::Feature::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
void ShapeBinder::onSettingDocument()
|
||||
@@ -727,8 +730,9 @@ void SubShapeBinder::handleChangedPropertyType(
|
||||
{
|
||||
if(prop == &Support) {
|
||||
Support.upgrade(reader,TypeName);
|
||||
return;
|
||||
}
|
||||
inherited::handleChangedPropertyType(reader,TypeName,prop);
|
||||
else {
|
||||
inherited::handleChangedPropertyType(reader,TypeName,prop);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -195,6 +195,9 @@ void ViewProviderBalloon::handleChangedPropertyType(Base::XMLReader &reader, con
|
||||
LineWidthProperty.Restore(reader);
|
||||
LineWidth.setValue(LineWidthProperty.getValue());
|
||||
}
|
||||
else {
|
||||
ViewProviderDrawingView::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
bool ViewProviderBalloon::canDelete(App::DocumentObject *obj) const
|
||||
|
||||
@@ -271,6 +271,9 @@ void ViewProviderDimension::handleChangedPropertyType(Base::XMLReader &reader, c
|
||||
LineWidthProperty.Restore(reader);
|
||||
LineWidth.setValue(LineWidthProperty.getValue());
|
||||
}
|
||||
else {
|
||||
ViewProviderDrawingView::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
bool ViewProviderDimension::canDelete(App::DocumentObject *obj) const
|
||||
|
||||
@@ -224,7 +224,7 @@ void ViewProviderLeader::handleChangedPropertyType(Base::XMLReader &reader, cons
|
||||
}
|
||||
|
||||
// property LineStyle had the App::PropertyInteger and was changed to App::PropertyIntegerConstraint
|
||||
if (prop == &LineStyle && strcmp(TypeName, "App::PropertyInteger") == 0) {
|
||||
else if (prop == &LineStyle && strcmp(TypeName, "App::PropertyInteger") == 0) {
|
||||
App::PropertyInteger LineStyleProperty;
|
||||
// restore the PropertyInteger to be able to set its value
|
||||
LineStyleProperty.Restore(reader);
|
||||
@@ -232,12 +232,16 @@ void ViewProviderLeader::handleChangedPropertyType(Base::XMLReader &reader, cons
|
||||
}
|
||||
|
||||
// property LineStyle had the App::PropertyIntegerConstraint and was changed to App::PropertyEnumeration
|
||||
if (prop == &LineStyle && strcmp(TypeName, "App::PropertyIntegerConstraint") == 0) {
|
||||
else if (prop == &LineStyle && strcmp(TypeName, "App::PropertyIntegerConstraint") == 0) {
|
||||
App::PropertyIntegerConstraint LineStyleProperty;
|
||||
// restore the PropertyIntegerConstraint to be able to set its value
|
||||
LineStyleProperty.Restore(reader);
|
||||
LineStyle.setValue(LineStyleProperty.getValue());
|
||||
}
|
||||
|
||||
else {
|
||||
ViewProviderDrawingView::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
bool ViewProviderLeader::onDelete(const std::vector<std::string> &)
|
||||
|
||||
@@ -208,7 +208,7 @@ void ViewProviderRichAnno::handleChangedPropertyType(Base::XMLReader &reader, co
|
||||
}
|
||||
|
||||
// property LineStyle had App::PropertyInteger and was changed to App::PropertyIntegerConstraint
|
||||
if (prop == &LineStyle && strcmp(TypeName, "App::PropertyInteger") == 0) {
|
||||
else if (prop == &LineStyle && strcmp(TypeName, "App::PropertyInteger") == 0) {
|
||||
App::PropertyInteger LineStyleProperty;
|
||||
// restore the PropertyInteger to be able to set its value
|
||||
LineStyleProperty.Restore(reader);
|
||||
@@ -216,12 +216,16 @@ void ViewProviderRichAnno::handleChangedPropertyType(Base::XMLReader &reader, co
|
||||
}
|
||||
|
||||
// property LineStyle had App::PropertyIntegerConstraint and was changed to App::PropertyEnumeration
|
||||
if (prop == &LineStyle && strcmp(TypeName, "App::PropertyIntegerConstraint") == 0) {
|
||||
else if (prop == &LineStyle && strcmp(TypeName, "App::PropertyIntegerConstraint") == 0) {
|
||||
App::PropertyIntegerConstraint LineStyleProperty;
|
||||
// restore the PropertyIntegerConstraint to be able to set its value
|
||||
LineStyleProperty.Restore(reader);
|
||||
LineStyle.setValue(LineStyleProperty.getValue());
|
||||
}
|
||||
|
||||
else {
|
||||
ViewProviderDrawingView::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
bool ViewProviderRichAnno::canDelete(App::DocumentObject *obj) const
|
||||
|
||||
@@ -334,6 +334,9 @@ void ViewProviderViewPart::handleChangedPropertyType(Base::XMLReader &reader, co
|
||||
ExtraWidthProperty.Restore(reader);
|
||||
ExtraWidth.setValue(ExtraWidthProperty.getValue());
|
||||
}
|
||||
else {
|
||||
ViewProviderDrawingView::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
bool ViewProviderViewPart::onDelete(const std::vector<std::string> &)
|
||||
|
||||
Reference in New Issue
Block a user