From 52ef3a5d19eda1c9641be1248d4fb8d0fd6578ac Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 13 Sep 2017 18:42:33 +0200 Subject: [PATCH] avoid permanently throwing exception by attach engine --- src/Mod/Part/App/AttachExtension.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/App/AttachExtension.cpp b/src/Mod/Part/App/AttachExtension.cpp index 96106864a4..1ec8d5a360 100644 --- a/src/Mod/Part/App/AttachExtension.cpp +++ b/src/Mod/Part/App/AttachExtension.cpp @@ -118,7 +118,9 @@ bool AttachExtension::positionBySupport() if (!_attacher) throw Base::RuntimeError("AttachExtension: can't positionBySupport, because no AttachEngine is set."); updateAttacherVals(); - try{ + try { + if (_attacher->mapMode == mmDeactivated) + return false; getPlacement().setValue(_attacher->calculateAttachedPlacement(getPlacement().getValue())); return true; } catch (ExceptionCancel) {