Skip to content

Commit

Permalink
Arch: Fixed null shape copy() bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Mar 14, 2014
1 parent f0b54d3 commit f4bb393
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Arch/ArchStructure.py
Expand Up @@ -570,6 +570,8 @@ def execute(self,obj):
base = None
if obj.Base:
if obj.Base.isDerivedFrom("Part::Feature"):
if obj.Base.Shape.isNull():
return
if hasattr(obj,"Tool"):
if obj.Tool:
try:
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Draft/Draft.py
Expand Up @@ -4536,6 +4536,8 @@ def execute(self,obj):
shapes = []
for o in obj.Objects:
if o.isDerivedFrom("Part::Feature"):
if o.Shape.isNull():
return
sh = o.Shape.copy()
m = FreeCAD.Matrix()
if hasattr(obj,"Scale") and not sh.isNull():
Expand Down

0 comments on commit f4bb393

Please sign in to comment.