Fixed contour setting the visibility although there is no ViewObject associated with it.

This commit is contained in:
Markus Lampert
2017-06-20 11:56:47 -07:00
parent c5e91d1df7
commit edd63bec4a

View File

@@ -199,7 +199,8 @@ class ObjectContour:
if not obj.Active:
path = Path.Path("(inactive operation)")
obj.Path = path
obj.ViewObject.Visibility = False
if obj.ViewObject:
obj.ViewObject.Visibility = False
return
commandlist = []
@@ -267,7 +268,7 @@ class ObjectContour:
path = Path.Path(commandlist)
obj.Path = path
if obj.ViewObject:
if obj.ViewObject:
obj.ViewObject.Visibility = True