9f8608a8ec
svn merge ^/trunk/blender -r40950:40997, bmesh is in sync with head again
2011-10-14 01:49:37 +00:00
4e118bb22f
svn merge ^/trunk/blender -r40890:40950
2011-10-14 01:35:20 +00:00
276e5f7095
formatting edits & remove debug print.
2011-10-13 01:29:08 +00:00
bdd7c2d3f4
fix documentation error - [ #28862 ] Method 'difference' doesn't exist in Quaternion object.
2011-10-10 01:14:49 +00:00
aa6d7ebd14
svn merge ^/trunk/blender -r40720:40872
2011-10-09 07:31:15 +00:00
acac22f3f2
enable cmake building makesdna with ghash
2011-10-02 12:34:41 +00:00
a1d647e92c
remove some redundant checks and compiler warnings.
2011-10-02 12:21:24 +00:00
14475d07cd
svn merge -r40295:40367 ^/trunk/blender
2011-09-21 17:15:54 +00:00
05683f8e52
edits to argument parsing for Euler.rotate_axis, also corrected some exception messages and minor style edits.
2011-09-19 15:13:16 +00:00
0f5d3a3ddb
add back mathutils Matrix() * Vector(), this is row_vector multiplication.
...
some minor changes to exception messages.
2011-09-19 14:29:21 +00:00
9d3b1f708f
Move function out of mathutils to: BLI_math_rotation --- single_axis_angle_to_mat3(mat3, axis, angle), copied out from mathutils, axis arg is a char 'X/Y/Z' rather then a vector like axis_angle_to_mat3().
2011-09-19 13:08:01 +00:00
a167ee1262
svn merge -r39951:39986 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-07 00:46:11 +00:00
9161d3ce4b
use Py_ssize_t rather than int when dealing with list sizes (original patch from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.
2011-09-06 23:46:20 +00:00
98f87b77f4
svn merge -r39433:39493 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-24 01:44:54 +00:00
e98074d327
remove support for deprecated Vector() * Matrix(), eventually this will be added back as row_vector_multiplication bu to avoid confusion for a bit just disable it altogether so script authors get an error on use and update their scripts.
2011-08-16 13:10:46 +00:00
55a560c0c4
svn merge -r39286:39385 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-16 06:30:14 +00:00
165e6dbc07
Adding a readonly length_squared property to mathutils.Vector. This is simply vector.dot(vector), so nothing new is really added, but it's nice for writing more intent revealing code. In other words:
...
if vec.dot(vec) > some_distance*some_distance:
do_something()
might not be quite as obvious looking as:
if vec.length_squared > some_distance*some_distance:
do_something()
As to why you'd want to use length_squared over length is that length uses a square root, which isn't always necessary for simple distance checks (e.g., closest object, checks like the ones above, ect).
2011-08-11 09:40:14 +00:00
42b87af8a7
svn merge -r38600:38700 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 04:31:59 +00:00
6d5080783e
svn merge -r38500:38600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 04:17:15 +00:00
fc95382a97
svn merge -r38400:38500 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 03:55:23 +00:00
ced8f1dffc
deprecate multiplication orders:
...
vector * matrix
vector *= matrix
vector * quaternion
vector *= quaternion
Use the reverse order instead, enable WITH_ASSERT_ABORT in cmake to promote the warnings into errors.
2011-07-25 01:44:19 +00:00
314fdb941e
revert recent matrix multiplication patch:
...
[#28032 ] Python Mathutils: Matrix Multiplication Error
Since they ended up reversing the order we better keep old code unless its proven to be incorrect.
also change Matrix.__repr__ function args to evaluate correctly (need to be inside a tuple).
2011-07-21 02:00:29 +00:00
8b5e7f2650
patch [ #28032 ] swapped matrix multiplication order, reverse it back, tested with FBX, BVH import/export which are very sensitive to changes in matrix rotation.
2011-07-20 06:41:51 +00:00
0ed523a8dd
patch [ #28032 ] Python Mathutils: Matrix Multiplication Error
...
from Scott Giese (sgiese)
2011-07-20 05:57:38 +00:00
3a6158a8bf
move mathutils into its own lib.
2011-07-15 04:01:47 +00:00