PathBoundary editor filled with life.
This commit is contained in:
@@ -344,12 +344,14 @@ class ObjectJob:
|
||||
def execute(self, obj):
|
||||
obj.Path = obj.Operations.Path
|
||||
|
||||
def addOperation(self, op, before = None):
|
||||
def addOperation(self, op, before = None, removeBefore = False):
|
||||
group = self.obj.Operations.Group
|
||||
if op not in group:
|
||||
if before:
|
||||
try:
|
||||
group.insert(group.index(before), op)
|
||||
if removeBefore:
|
||||
group.remove(before)
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
PathLog.error(e)
|
||||
group.append(op)
|
||||
|
||||
Reference in New Issue
Block a user