From edd63bec4a202fa941b4b4bc5b95e189c9862b0e Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Tue, 20 Jun 2017 11:56:47 -0700 Subject: [PATCH] Fixed contour setting the visibility although there is no ViewObject associated with it. --- src/Mod/Path/PathScripts/PathContour.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathContour.py b/src/Mod/Path/PathScripts/PathContour.py index 636cde320a..655886a1d8 100644 --- a/src/Mod/Path/PathScripts/PathContour.py +++ b/src/Mod/Path/PathScripts/PathContour.py @@ -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