Skip to content

Commit

Permalink
assembly: obsolete sechdule delete
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Aug 18, 2018
1 parent e16f2ad commit c67bf96
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -2474,17 +2474,12 @@ def onSolverTimer(cls):

@classmethod
def scheduleDelete(cls,doc,names):
if not names:
return
if not doc.Recomputing:
for name in names:
try:
doc.removeObject(name)
except Exception:
pass
return
cls._PendingRemove.append((doc,names))
cls.schedule()
# FC core now support pending remove, so no need to schedule here
for name in names:
try:
doc.removeObject(name)
except Exception:
pass

@classmethod
def scheduleReload(cls,obj):
Expand Down

0 comments on commit c67bf96

Please sign in to comment.