improve undo/redo handling

This commit is contained in:
wmayer
2017-04-16 09:19:05 +02:00
parent 3857e5200a
commit 3eed50918b
4 changed files with 24 additions and 26 deletions

View File

@@ -148,11 +148,11 @@ void ShapeValidator::checkAndAdd(const Part::TopoShape &ts, const char *subName,
}
PROPERTY_SOURCE(Surface::SurfaceFeature, Part::Feature)
PROPERTY_SOURCE(Surface::SurfaceFeature, Part::Spline)
const char* SurfaceFeature::FillTypeEnums[] = {"Stretched", "Coons", "Curved", NULL};
SurfaceFeature::SurfaceFeature(): Feature()
SurfaceFeature::SurfaceFeature(): Spline()
{
ADD_PROPERTY(FillType, ((long)0));
ADD_PROPERTY(BoundaryList, (0, "Dummy"));

View File

@@ -31,7 +31,7 @@
#include <App/PropertyStandard.h>
#include <App/PropertyUnits.h>
#include <App/PropertyLinks.h>
#include <Mod/Part/App/PartFeature.h>
#include <Mod/Part/App/FeaturePartSpline.h>
namespace Surface
{
@@ -61,7 +61,7 @@ public:
}
};
class SurfaceFeature : public Part::Feature
class SurfaceFeature : public Part::Spline
{
PROPERTY_HEADER(Surface::SurfaceFeature);