Path: fix #3048 Visibility on recompute is now preserved
This commit is contained in:
committed by
Yorik van Havre
parent
9a15fed386
commit
0b0c3b2b2e
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -319,7 +319,6 @@ class ObjectFace:
|
||||
|
||||
path = Path.Path(commandlist)
|
||||
obj.Path = path
|
||||
obj.ViewObject.Visibility = True
|
||||
|
||||
|
||||
class _ViewProviderFace:
|
||||
|
||||
@@ -326,7 +326,6 @@ class ObjectPocket:
|
||||
|
||||
path = Path.Path(commandlist)
|
||||
obj.Path = path
|
||||
obj.ViewObject.Visibility = True
|
||||
|
||||
PathLog.debug(simlist)
|
||||
simshape = None
|
||||
|
||||
@@ -361,7 +361,6 @@ class ObjectProfile:
|
||||
|
||||
path = Path.Path(commandlist)
|
||||
obj.Path = path
|
||||
obj.ViewObject.Visibility = True
|
||||
|
||||
|
||||
class _ViewProviderProfile:
|
||||
|
||||
@@ -288,7 +288,6 @@ class ObjectProfile:
|
||||
|
||||
path = Path.Path(commandlist)
|
||||
obj.Path = path
|
||||
obj.ViewObject.Visibility = True
|
||||
return sim
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user