[PD] fix property issues

- Helix: the property Turns has the App::PropertyFloatConstraint thus also the pointer to it must have the same property

- LinearPattern and Helix: make constraints static class member (forgot this in commit 3704ad68)

- Draft: make the constraint const

- PolarPattern and LinearPattern assure that the header file is loaded at last to avoid potential troubles
This commit is contained in:
donovaly
2021-07-11 01:43:38 +02:00
parent 46282db7c8
commit 8b9afbd921
8 changed files with 13 additions and 10 deletions
@@ -32,8 +32,6 @@
# include <BRepAdaptor_Surface.hxx>
#endif
#include "FeatureLinearPattern.h"
#include "DatumPlane.h"
#include "DatumLine.h"
#include <App/OriginFeature.h>
@@ -42,6 +40,8 @@
#include <Mod/Part/App/TopoShape.h>
#include <Mod/Part/App/Part2DObject.h>
#include "FeatureLinearPattern.h"
using namespace PartDesign;
namespace PartDesign {
@@ -49,7 +49,7 @@ namespace PartDesign {
PROPERTY_SOURCE(PartDesign::LinearPattern, PartDesign::Transformed)
const App::PropertyIntegerConstraint::Constraints intOccurrences = { 1, INT_MAX, 1 };
const App::PropertyIntegerConstraint::Constraints LinearPattern::intOccurrences = { 1, INT_MAX, 1 };
LinearPattern::LinearPattern()
{