Open GoogleCodeExporter opened 9 years ago
PD: the subject refers to cocos.euclid.Vector2 ( thats where I originally found
the
problem) but I checked out this project ( pyeuclid ) and verified it manifest
the
same problem. The traceback and svn diff are against pyeuclid r31.
Original comment by ccanepacc@gmail.com
on 24 Apr 2009 at 4:39
Fix seems pretty straightforward, attached is a patch
>>> import euclid
>>> a = euclid.Vector2(1,1)
>>> (0,0) - a
Vector2(-1.00, -1.00)
Explanation:
The bug assessed correctly that the other object is not a euclid.VectorX, but
then
still tries to access members .x and .y. Simple copy and paste mistake.
Original comment by julian.k...@gmail.com
on 12 May 2009 at 9:09
Argg, sorry ccanepacc, didn't see you already attached a fix ;) It is already
late.
Anyway, the patch I added also fixes the same problem for Vector3.__rsub__
Original comment by julian.k...@gmail.com
on 12 May 2009 at 9:12
Original issue reported on code.google.com by
ccanepacc@gmail.com
on 18 Apr 2009 at 8:07Attachments: