Path: fix #3048 Visibility on recompute is now preserved

This commit is contained in:
sliptonic
2017-07-08 15:16:03 -05:00
committed by Yorik van Havre
parent 9a15fed386
commit 0b0c3b2b2e
6 changed files with 11 additions and 13 deletions

View File

@@ -105,6 +105,13 @@ class ObjectDrilling:
@waiting_effects
def execute(self, obj):
PathLog.track()
if not obj.Active:
path = Path.Path("(inactive operation)")
obj.Path = path
obj.ViewObject.Visibility = False
return
output = ""
if obj.Comment != "":
output += '(' + str(obj.Comment)+')\n'
@@ -210,15 +217,10 @@ class ObjectDrilling:
output += "G80\n"
if obj.Active:
path = Path.Path(output)
obj.Path = path
obj.ViewObject.Visibility = True
path = Path.Path(output)
obj.Path = path
# obj.ViewObject.Visibility = True
else:
path = Path.Path("(inactive operation)")
obj.Path = path
obj.ViewObject.Visibility = False
def findHeights(self, obj, bobj, hole):
try:

View File

@@ -157,7 +157,7 @@ class ObjectPathEngrave:
path = Path.Path(output)
obj.Path = path
obj.ViewObject.Visibility = True
#obj.ViewObject.Visibility = True
def buildpathocc(self, obj, wires):
PathLog.track()

View File

@@ -319,7 +319,6 @@ class ObjectFace:
path = Path.Path(commandlist)
obj.Path = path
obj.ViewObject.Visibility = True
class _ViewProviderFace:

View File

@@ -326,7 +326,6 @@ class ObjectPocket:
path = Path.Path(commandlist)
obj.Path = path
obj.ViewObject.Visibility = True
PathLog.debug(simlist)
simshape = None

View File

@@ -361,7 +361,6 @@ class ObjectProfile:
path = Path.Path(commandlist)
obj.Path = path
obj.ViewObject.Visibility = True
class _ViewProviderProfile:

View File

@@ -288,7 +288,6 @@ class ObjectProfile:
path = Path.Path(commandlist)
obj.Path = path
obj.ViewObject.Visibility = True
return sim