projects
/
python-bulletml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd06ecc
)
Bullet.finished: Check vanished before checking actions, it's faster.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 04:51:39 +0000
(21:51 -0700)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 04:51:39 +0000
(21:51 -0700)
bulletml/impl.py
patch
|
blob
|
history
diff --git
a/bulletml/impl.py
b/bulletml/impl.py
index cc693e15cea69f02af60a6e9c60e082a2b5dbe6f..af3f153906eed6c1f7180e37d622a0749ddc9d3d 100644
(file)
--- a/
bulletml/impl.py
+++ b/
bulletml/impl.py
@@
-264,10
+264,12
@@
class Bullet(object):
@property
def finished(self):
"""Check if this bullet is finished running."""
+ if not self.vanished:
+ return False
for action in self.actions:
if not action.finished:
return False
- return
self.vanished
+ return
True
def vanish(self):
"""Vanish this bullet and stop all actions."""