Skip to content

Commit

Permalink
Arch: Fixed tab indents im importOBJ
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Oct 10, 2019
1 parent f66023a commit 04f8758
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Arch/importOBJ.py
Expand Up @@ -73,14 +73,14 @@ def getIndices(obj,shape,offsetv,offsetvn):
try:
if not isinstance(e.Curve,Part.LineSegment):
if not curves:
myshape = obj.Shape.copy(False)
myshape.Placement=obj.getGlobalPlacement()
myshape = obj.Shape.copy(False)
myshape.Placement=obj.getGlobalPlacement()
mesh=MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.7, Relative=True)

This comment has been minimized.

Copy link
@vocx-fc

vocx-fc Oct 10, 2019

Contributor

@yorikvanhavre actually, I think the myshape = obj, should be aligned to the mesh=MeshPart

Like this

if not curves:
    myshape = obj.Shape.copy(False)
    myshape.Placement=obj.getGlobalPlacement()
    mesh=MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.7, Relative=True)

Otherwise the instructions don't make much sense.

FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating")+"\n")
break
except: # unimplemented curve type
myshape = obj.Shape.copy(False)
myshape.Placement=obj.getGlobalPlacement()
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

This comment has been minimized.

Copy link
@vocx-fc

vocx-fc Oct 10, 2019

Contributor

@yorikvanhavre Same here

except: # unimplemented curve type
    myshape = obj.Shape.copy(False)
    myshape.Placement=obj.getGlobalPlacement()
    mesh=MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.7, Relative=True)
Expand Down

0 comments on commit 04f8758

Please sign in to comment.