Sketcher: Bug fix - prevent inter part/body links

=================================================

With the support for external geometry during carbon copy, it was introduced a way for creating inter-part/inter-body links. See:
https://forum.freecadweb.org/viewtopic.php?f=10&t=27700&p=223736#p223736

This commit closes this door, while still allows carbon copy with external geometry support within the same body.
This commit is contained in:
Abdullah Tahiri
2018-03-27 07:06:09 +02:00
committed by wmayer
parent c3423ad8d8
commit 0ac32464e4
3 changed files with 18 additions and 5 deletions

View File

@@ -6611,6 +6611,9 @@ namespace SketcherGui {
case Sketcher::SketchObject::rlOtherBody:
this->notAllowedReason = QT_TR_NOOP("This object belongs to another body. Hold Ctrl to allow crossreferences.");
break;
case Sketcher::SketchObject::rlOtherBodyWithLinks:
this->notAllowedReason = QT_TR_NOOP("This object belongs to another body and it contains external geometry. Crossreference not allowed.");
break;
case Sketcher::SketchObject::rlOtherPart:
this->notAllowedReason = QT_TR_NOOP("This object belongs to another part.");
break;