summaryrefslogtreecommitdiffhomepage
path: root/host/simu/robots
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-07 14:25:02 +0200
committerNicolas Schodet2012-05-07 14:27:21 +0200
commit2c77b3aaa660c2935d0d9501dac860ef4b510391 (patch)
treec88b4d4154fd7810244e5e012d3c8b2a60adb61e /host/simu/robots
parent84db6bac4c4eabfd8de5d4c2cf13a741288cbe45 (diff)
host/simu/robots/guybrush: fix problem since totem is at level 3
Diffstat (limited to 'host/simu/robots')
-rw-r--r--host/simu/robots/guybrush/model/clamps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/simu/robots/guybrush/model/clamps.py b/host/simu/robots/guybrush/model/clamps.py
index 06a6f077..d723847a 100644
--- a/host/simu/robots/guybrush/model/clamps.py
+++ b/host/simu/robots/guybrush/model/clamps.py
@@ -197,7 +197,7 @@ class Clamps (Observable):
and pos[0] < xoffset + 35 + xmargin
and pos[1] > -ymargin2 and pos[1] < ymargin2):
yield (o, 0)
- if o.level == 3 and o.pos is not None:
+ if o.level == 3 and hasattr (o, 'value') and o.pos is not None:
pos = m.apply (o.pos)
if (pos[0] > xoffset + o.radius - xmargin
and pos[0] < xoffset + o.radius + xmargin