PartDesign: Fix attachment external references
This commit is contained in:
parent
306611e8f8
commit
6bf31e841e
|
@ -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] = "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user