Draft: Do not import non-instanciated blocks - fixes #2822

This commit is contained in:
Yorik van Havre
2016-12-31 15:48:01 -02:00
parent 9060becfe7
commit 0e040fd6e0

View File

@@ -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());
}
}
}