From 7cd20adc9ab4337a73214ce4ec6d0134417c65e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Thu, 14 Jan 2016 08:29:44 +0100 Subject: [PATCH] ShapeBinder: fix Null shape on recompute for copy --- src/Mod/PartDesign/App/ShapeBinder.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index 805646239..3669b5144 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -65,8 +65,11 @@ App::DocumentObjectExecReturn* ShapeBinder::execute(void) { std::vector subs; ShapeBinder::getFilterdReferences(&Support, obj, subs); - Shape.setValue(ShapeBinder::buildShapeFromReferences(obj, subs)._Shape); - Placement.setValue(obj->Placement.getValue()); + //if we have a link we rebuild the shape, but we change nothing if we are a simple copy + if(obj) { + Shape.setValue(ShapeBinder::buildShapeFromReferences(obj, subs)._Shape); + Placement.setValue(obj->Placement.getValue()); + } } return Part::Feature::execute();