extend ShapeBinder to also handle Origin features

This commit is contained in:
wmayer
2019-06-15 15:07:52 +02:00
parent 9177b4057c
commit 18183bc79b
4 changed files with 96 additions and 54 deletions

View File

@@ -79,7 +79,7 @@ TaskShapeBinder::TaskShapeBinder(ViewProviderShapeBinder *view, bool /*newObj*/,
vp = view;
//add initial values
Part::Feature* obj = nullptr;
App::GeoFeature* obj = nullptr;
std::vector<std::string> subs;
PartDesign::ShapeBinder::getFilteredReferences(&static_cast<PartDesign::ShapeBinder*>(vp->getObject())->Support, obj, subs);
@@ -227,9 +227,9 @@ bool TaskShapeBinder::referenceSelected(const SelectionChanges& msg) const {
std::string subName(msg.pSubName);
Part::Feature* selectedObj = nullptr;
Part::Feature* obj = nullptr;
App::GeoFeature* obj = nullptr;
std::vector<std::string> refs;
PartDesign::ShapeBinder::getFilteredReferences(&static_cast<PartDesign::ShapeBinder*>(vp->getObject())->Support, obj, refs);
// get selected object