[Bf-python] [Fwd: [Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x matrix.c matrix.h vector.c vector.h blender/source/blender/python/api2_2x/doc Mathutils.py]

Gilbert, Joseph T. jgilbert at tigr.ORG
Mon Aug 21 19:17:53 CEST 2006


I like it however, it's the same thing as passing the argument to the
constructor but more explict e.g. Vector(vec) == vec.copy. I would
assume that if you didn't know how to do the first, you probably don't
know to call copy() before inverting....

Another idea is to force an argument to invert() asking whether or not
to make a safe copy. Of course this would break things currently.

I think copy stands on it's own merits though and is a good inclusion.

-----Original Message-----
From: bf-python-bounces at projects.blender.org
[mailto:bf-python-bounces at projects.blender.org] On Behalf Of Campbell
Barton
Sent: Monday, August 21, 2006 8:42 AM
To: bf-python at blender.org
Subject: [Bf-python] [Fwd: [Bf-blender-cvs] CVS commit:
blender/source/blender/python/api2_2x matrix.c matrix.h vector.c
vector.h blender/source/blender/python/api2_2x/doc Mathutils.py]

Removed 'ed' functions, this is more like 2.42 functionality...
My evil plan is to have __copy__ where possible as a generic way to copy

data...

Havnt got much feedback but this strikes me as the best solution.

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list