PartDesign/Body: add ability to store facebinders inside a body
This commit is contained in:
committed by
Stefan Tröger
parent
4e1a9c05cb
commit
1ac37a44f3
@@ -44,6 +44,7 @@
|
||||
#include "DatumPoint.h"
|
||||
#include "DatumLine.h"
|
||||
#include "DatumPlane.h"
|
||||
#include "ShapeBinder.h"
|
||||
|
||||
#include "Body.h"
|
||||
#include "BodyPy.h"
|
||||
@@ -244,7 +245,8 @@ const bool Body::isAllowed(const App::DocumentObject* f)
|
||||
return (f->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId()) ||
|
||||
f->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId()) ||
|
||||
// TODO Shouldn't we replace it with Sketcher::SketchObject? (2015-08-13, Fat-Zer)
|
||||
f->getTypeId().isDerivedFrom(Part::Part2DObject::getClassTypeId())
|
||||
f->getTypeId().isDerivedFrom(Part::Part2DObject::getClassTypeId()) ||
|
||||
f->getTypeId().isDerivedFrom(PartDesign::ShapeBinder::getClassTypeId())
|
||||
// TODO Why this lines was here? why should we allow anything of those? (2015-08-13, Fat-Zer)
|
||||
//f->getTypeId().isDerivedFrom(Part::FeaturePython::getClassTypeId()) // trouble with this line on Windows!? Linker fails to find getClassTypeId() of the Part::FeaturePython...
|
||||
//f->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())
|
||||
|
||||
Reference in New Issue
Block a user