From 1422981b9328d7de3bb0fa95dfd24e248147e8f6 Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Mon, 27 Jan 2025 21:01:50 +0100 Subject: [PATCH] Draft: remove faulty code from importDXF.py The Group property of the 'new' layer object is not an attribute of its Proxy. --- src/Mod/Draft/importDXF.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index c6622a6b20..3dae1e6d2c 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -1928,16 +1928,7 @@ def addObject(shape, name="Shape", layer=None): newob = shape if layer: lay = locateLayer(layer) - # For old style layers, which are just groups if hasattr(lay, "Group"): - pass - # For new Draft Layers - elif hasattr(lay, "Proxy") and hasattr(lay.Proxy, "Group"): - lay = lay.Proxy - else: - lay = None - - if lay != None: if lay not in layerObjects: l = [] layerObjects[lay] = l @@ -1945,8 +1936,6 @@ def addObject(shape, name="Shape", layer=None): l = layerObjects[lay] l.append(newob) - - formatObject(newob) return newob