From f8994307398ee69c50f1bdc3dfcbabb7e78e3fb2 Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Mon, 13 Jul 2020 10:33:33 -0500 Subject: [PATCH] Arch: fix incorrect indentation in the OBJ exporter --- src/Mod/Arch/importOBJ.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Mod/Arch/importOBJ.py b/src/Mod/Arch/importOBJ.py index b26074765e..5135ecbac3 100644 --- a/src/Mod/Arch/importOBJ.py +++ b/src/Mod/Arch/importOBJ.py @@ -84,15 +84,15 @@ def getIndices(obj,shape,offsetv,offsetvn): break except: # unimplemented curve type if obj.isDerivedFrom("App::Link"): - if obj.Shape: - myshape = obj.Shape.copy(False) - myshape.Placement=obj.LinkPlacement - else: - myshape = obj.Shape.copy(False) - myshape.Placement=obj.getGlobalPlacement() - mesh = MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.7, Relative=True) - FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating")+"\n") - break + if obj.Shape: + myshape = obj.Shape.copy(False) + myshape.Placement=obj.LinkPlacement + else: + myshape = obj.Shape.copy(False) + myshape.Placement=obj.getGlobalPlacement() + mesh = MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.7, Relative=True) + FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating")+"\n") + break elif isinstance(shape,Mesh.Mesh): mesh = shape curves = shape.Topology