Path: Add Base.Active check early in execute() method

This commit adds a `Base.Active` check to determine if the Base is Active.  If the Base is Inactive, the new code sets the `obj.Path` property to the same inactive message used in PathOp module and the `execution()` method returns immediately, stopping further execution.
This commit is contained in:
Russell Johnson
2021-09-04 08:14:15 -05:00
parent 5d4f7e96b4
commit a83871e509

View File

@@ -109,12 +109,18 @@ class ObjectDressup:
return
if not obj.Base.Path:
return
if not obj.Base.Active:
path = Path.Path("(inactive operation)")
obj.Path = path
return
if obj.Angle >= 90:
obj.Angle = 89.9
elif obj.Angle <= 0:
obj.Angle = 0.1
if hasattr(obj, 'UseStartDepth'):
if hasattr(obj, "UseStartDepth"):
self.ignoreAboveEnabled = obj.UseStartDepth
self.ignoreAbove = obj.DressupStartDepth
else: