Problem in adding Vectors


23-07-2006 18:55:58

Hi folks,
I'm not sure if I'm doing somting wrong, but I caught following behaviour in Istari's build of PyOgre 1.2:

Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyogre import ogre
>>> v1 = ogre.Vector3(1, 2, 3)
>>> v2 = ogre.Vector3(4, 5, 6)
>>> v1 += v2
>>> print v1
>>> v1 = ogre.Vector3(1, 2, 3)
>>> v1 = v1 + v2
>>> print v1
Vector3(5.000000, 7.000000, 9.000000)

Is there any hidden reason, why "+=" operation doesn't work as in 1.0.6?


23-07-2006 22:14:11

I commented out some stuff from the interface files for the vectors and these operations seem to work fine now.
The reason why this has stopped working is probably because a newer version of SWIG is being used, and newer versions of SWIG don't always have backwards compatibility.

I have updated the binaries on my server and the svn repo with these changes.


24-07-2006 08:05:34

Thanks Istari, it works now. And thanks you and whole team a lot for pyOgre.