Browse Source

Cleanup

tags/v1.9.11
FilipeCSnuk 6 years ago
parent
commit
d37ca695a6
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      source/patchcanvas.py

+ 3
- 4
source/patchcanvas.py View File

@@ -431,11 +431,10 @@ def clear():
animatedItems.append(animation.item())

for item in canvas.scene.items():
if item.type() == CanvasRubberbandType:
if item.type() in (CanvasIconType, CanvasRubberbandType) or item in animatedItems:
continue
if item.type() != CanvasIconType and item not in animatedItems:
canvas.scene.removeItem(item)
del item
canvas.scene.removeItem(item)
del item

canvas.initiated = False



Loading…
Cancel
Save