From 0e040fd6e06b1bb340e0606651792245df97f4fc Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 31 Dec 2016 15:48:01 -0200 Subject: [PATCH] Draft: Do not import non-instanciated blocks - fixes #2822 --- src/Mod/Draft/App/DraftDxf.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/App/DraftDxf.cpp b/src/Mod/Draft/App/DraftDxf.cpp index a8b50c3751..cf5db5e18a 100644 --- a/src/Mod/Draft/App/DraftDxf.cpp +++ b/src/Mod/Draft/App/DraftDxf.cpp @@ -210,8 +210,10 @@ void DraftDxfRead::AddObject(Part::TopoShape *shape) vec.push_back(shape); layers[LayerName()] = vec; if (!optionGroupLayers) { - Part::Feature *pcFeature = (Part::Feature *)document->addObject("Part::Feature", "Shape"); - pcFeature->Shape.setValue(*shape); + if(LayerName().substr(0, 6) != "BLOCKS") { + Part::Feature *pcFeature = (Part::Feature *)document->addObject("Part::Feature", "Shape"); + pcFeature->Shape.setValue(shape->getShape()); + } } }