leos.pol
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:
Is there any hidden reason, why "+=" operation doesn't work as in 1.0.6?
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
None
>>> 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?