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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user