erase particles

This commit is contained in:
Ian Jauslin 2021-12-01 18:54:37 -05:00
parent 4b0352f5d7
commit d740dec08e

View File

@ -86,6 +86,12 @@ class Painter(Widget):
if not 's' in self.modifiers:
self.modifiers.append('s')
self.modifiers.sort()
# remove particles
elif keycode[1]=="backspace":
for particle in self.selected:
self.particles=remove_fromlist(self.particles,particle)
self.selected=[]
self.draw()
def on_key_up(self, keyboard, keycode):
if keycode[1]=="shift":