From 7818f1f08b4516cc2f8dc3c81f969a9137d17fea Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Mon, 10 Apr 2017 14:25:38 +0200 Subject: [PATCH] Sketcher: Carbon Copy enable checks when not in a body --- src/Mod/Sketcher/App/SketchObject.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 24e71ddbb2..cb318d4e20 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -2046,12 +2046,12 @@ bool SketchObject::isCarbonCopyAllowed(App::Document *pDoc, App::DocumentObject App::Part* part_this = App::Part::getPartOfObject(this, true); App::Part* part_obj = App::Part::getPartOfObject(pObj, true); if (part_this == part_obj){ //either in the same part, or in the root of document - if (body_this == NULL) { - return true; - } else if (body_this != body_obj) { - if (rsn) - *rsn = rlOtherBody; - return false; + if (body_this != NULL) { + if (body_this != body_obj) { + if (rsn) + *rsn = rlOtherBody; + return false; + } } } else { // cross-part link. Disallow, should be done via shapebinders only