Change Scale to PropertyFloatConstaint to prevent OCC loop when Scale == 0

This commit is contained in:
WandererFan
2017-01-31 18:47:08 -05:00
committed by Yorik van Havre
parent fb1cc0a413
commit 813454993c
8 changed files with 178 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ public:
App::PropertyFloat X;
App::PropertyFloat Y;
App::PropertyFloat Scale;
App::PropertyFloatConstraint Scale;
App::PropertyEnumeration ScaleType;
App::PropertyFloat Rotation;
@@ -62,6 +62,7 @@ public:
virtual void onDocumentRestored();
virtual short mustExecute() const;
//@}
void Restore(Base::XMLReader &reader);
bool isInClip();
@@ -90,6 +91,7 @@ protected:
private:
static const char* ScaleTypeEnums[];
static App::PropertyFloatConstraint::Constraints scaleRange;
};
typedef App::FeaturePythonT<DrawView> DrawViewPython;