PartDesign: Fix attachment external references

This commit is contained in:
Stefan Tröger 2016-04-09 09:13:22 +02:00
parent 306611e8f8
commit 6bf31e841e

View File

@ -896,7 +896,7 @@ bool TaskDlgDatumParameters::accept()
//the user has to decide which option we should take if external references are used
bool ext = false;
for(App::DocumentObject* obj : pcDatum->Support.getValues()) {
if(!pcActiveBody->hasFeature(obj))
if(!pcActiveBody->hasFeature(obj) && !pcActiveBody->getOrigin()->hasObject(obj))
ext = true;
}
if(ext) {
@ -915,7 +915,7 @@ bool TaskDlgDatumParameters::accept()
int index = 0;
for(App::DocumentObject* obj : pcDatum->Support.getValues()) {
if(!pcActiveBody->hasFeature(obj)) {
if(!pcActiveBody->hasFeature(obj) && !pcActiveBody->getOrigin()->hasObject(obj)) {
objs.push_back(PartDesignGui::TaskFeaturePick::makeCopy(obj, subs[index], dlg.radioIndependent->isChecked()));
copies.push_back(objs.back());
subs[index] = "";