From 2c77b3aaa660c2935d0d9501dac860ef4b510391 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 7 May 2012 14:25:02 +0200 Subject: host/simu/robots/guybrush: fix problem since totem is at level 3 --- host/simu/robots/guybrush/model/clamps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/simu/robots/guybrush/model/clamps.py') 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 -- cgit v1.2.3