Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-02-01setting invalid vector swizzle attributes (from blender2.4x docs for ↵Campbell Barton
instance), could crash blender. - disallow setting swizzle's that have duplicate values: vec.xxx = [1,2,3] - raise an error if the list setting a swizzle's longer. - mathutils write callback was running on the wrong vector, which could crash blender.
2010-02-01Mathutils doc improvements + other small thingsCampbell Barton
- bpy.app moved into PyStructSequence (used by sys.float_info) - added buildinfo into bpy.app.build_* - bpy.ui removed (wasnt used) - include external example files in Mathutils docs (only Mathutils and Vector are currently written) - added support to auto document PyStructSequence's - CMake had "'s inside all its strings.
2010-01-30bugfix [#20417] <memory> shouldn't be stored in recent item listCampbell Barton
2010-01-30utility functions is_negative_m3 & is_negative_m4, added python Mathutils ↵Campbell Barton
access Matrix.is_negative renamed Mathutils attribute wrapped -> is_wrapped
2010-01-28* Mathutils attributes documented - ↵Campbell Barton
http://www.blender.org/documentation/250PythonDoc/Mathutils.html * Vector.difference() needed normalized vectors * bpy.DEUBG -> bpy.app.debug
2010-01-27py api - utility function for vectors.Campbell Barton
quat = vec.difference(other) also pedantic change with enum names.
2010-01-27crash fix from own recent updates to Mathutils.RotationMatrix()Campbell Barton
2010-01-25Mathutils refactor & include in sphinx generated docs, (TODO, include ↵Campbell Barton
getset'ers in docs) - Mathutils.MidpointVecs --> vector.lerp(other, fac) - Mathutils.AngleBetweenVecs --> vector.angle(other) - Mathutils.ProjectVecs --> vector.project(other) - Mathutils.DifferenceQuats --> quat.difference(other) - Mathutils.Slerp --> quat.slerp(other, fac) - Mathutils.Rand: removed, use pythons random module - Mathutils.RotationMatrix(angle, size, axis_flag, axis) --> Mathutils.RotationMatrix(angle, size, axis); merge axis & axis_flag args - Matrix.scalePart --> Matrix.scale_part - Matrix.translationPart --> Matrix.translation_part - Matrix.rotationPart --> Matrix.rotation_part - toMatrix --> to_matrix - toEuler --> to_euler - toQuat --> to_quat - Vector.toTrackQuat --> Vector.to_track_quat
2010-01-22Math Lib:Brecht Van Lommel
* inline some more functions, from math_base and math_vector * also made some changes to the way inline is done so it can work for more than one file * reflect_v3_v3v3 requires input vectors to be normalized now. * added rgb_to_grayscale * added zero_v4, copy_v4_v4, swap_v4_v4, is_one_v3 * added box_clip_bounds_m4 to clip a bounding box against a projection matrix
2010-01-22error message errorCampbell Barton
2010-01-14spelling errors, no real changes to code.Campbell Barton
2010-01-03editbone.transform(matrix) function, requested by Cessen.Campbell Barton
Also added matrix.median_scale attribute to get the average scale from the matrix, use for scaling bone envalopes.
2009-12-29* speedup for animating bones, in one scene with sintel and a dragon ↵Campbell Barton
animated its over 4x faster. * utility function BLI_findstring to avoid listbase lookup loops everywhere. eg: ListBase *lb= objects= &CTX_data_main(C)->object; Object *ob= BLI_findstring(lb, name, offsetof(ID, name) + 2); * made some more math functions use const's, (fix warnings I made in previous commits)
2009-12-29flag to make rna props 'thick wrapped', so returning a property wont try ↵Campbell Barton
maintain a reference to the original rna property with callbacks. also needed for functions that return vectors/matrix's
2009-12-27barycentric transform utility geometry function.Campbell Barton
From 2 triangles and 1 point, the relative position between the point and the first triangle is applied to the second triangle to find the target point. the barycentric weights are calculated in 2D space with a signed area so values outside the triangle bounds are supported. wrapped by python: pt_to = Geometry.BarycentricTransform(pt_from, t1a, t1b, t1c, t2a, t1b, t1c) NOTE: - moved some barycentric weight functions out of projection painting into the math lib. - ended up making some of the math functions use const args. TODO: - support exceptional cases. zero area tries and similar.
2009-12-22BGE bug #20446: revert to orignal code, the problems comes from ↵Benoit Bolsee
misunderstanding of matrix theory. More details in bug report.
2009-12-22[#20446] mathutils: bugfix for matrix * matrix - patch by Paul Parchenko ↵Dalai Felinto
(parfoure) thanks From the tracker: - typo was making the multiplication to transpose resulting matrix eg #### from Mathutils import * from math import radians cont = GameLogic.getCurrentController() owner = cont.owner owner.worldOrientation = RotationMatrix(radians(1), 3, 'z') * owner.worldOrientation ####
2009-12-07- string copy without .py wasnt terminating the stringCampbell Barton
- console import autocomplete wasnt including modules defined in C like BGL, Mathutils
2009-12-01User Script support added back.Campbell Barton
- the scripts path set in the user preferences or ~/.blender/scripts/ui (io, op, io etc..) will be used to load scripts. - the default home dir part probably only works in *nix os's - Added a missing sync callback to vector.toTuple()
2009-11-30- added a new math function double_round, useful for rounding a number to a ↵Campbell Barton
number of decimal places. - added Mathutils vector method, vec.asTuple(round), since this is tedious in python and fairly common task.
2009-11-26Mathutils vec += vec wasnt running mathutls callbacksCampbell Barton
2009-11-20option to have scripts run on startup for per blendfile UI'sCampbell Barton
2009-11-19idprop.get(key, default=None)Campbell Barton
matching pythons dict.get() removed checks for a failed PyObject_New(), if python cant make a new object your probably going to crash anyway.
2009-11-19correcting ID property list was incorrect on portingCampbell Barton
2009-11-18fix for memory leak, use Key Errors for pyrna getitem access & idpropsCampbell Barton
2009-11-17- in pose mode, pose bone properties are edited rather then armature boneCampbell Barton
- new id property array method convert_to_pyobject() - editing an array in the UI broke - fixed for own error when updating ID prop api
2009-11-17my chnges broke 'del idprop["key"]'Campbell Barton
made it possible to remove properties from rna types. eg. del group["someprop"]
2009-11-16bpy/rna methods to find properties (works nice with autocomp!)Campbell Barton
keys(), values() & items() ed... print(bpy.context.active_object.keys()) Possible name conflict here, need to keep an eye on it.
2009-11-16update idproperty python api for python 3.1Campbell Barton
- removed 'group.has_key("key")', use... '"key" in group' instead - removed verbose float and int conversions that are not needed - fixed memory leak
2009-11-16python api for ID property access by Joseph Eager, copied from blender 2.4x.Campbell Barton
2009-11-12small corrections, no functionality changeCampbell Barton
2009-11-10Math LibBrecht Van Lommel
* Convert all code to use new functions. * Branch maintainers may want to skip this commit, and run this conversion script instead, if they use a lot of math functions in new code: http://www.pasteall.org/9052/python
2009-10-23Python APIKen Hughes
---------- Incorrect row and column values were passed to newMatrixObject() by Matrix_new() when the argument to Matrix() was a matrix.
2009-10-21Make compiler happy, remove doubtful non init usage.Guillermo S. Romero
2009-10-04mathutils: bugfix for matrix * vectorDalai Felinto
- terrible typo was making the multiplication to run in an infinite loop. - Any matrix * vector multiplication would crash Blender. eg #### import Mathutils from Mathutils import * vec_ray = Vector(0.0, 0.0, 1.0) tilt_mat = RotationMatrix(0.0, 3, "y") vec_ray = tilt_mat * vec_ray ####
2009-09-17bugfix for LineIntersectLine()Remigiusz Fiedler
- was imperfect calculation for points marking shortest distance for non-crossing lines in 3d
2009-09-14fix warningCampbell Barton
2009-09-12simple error in recent arithb.c commit, have Mathutils.RotationMatrix use ↵Campbell Barton
AxisAngleToMat3
2009-09-112.5: fix for merge, forward_diff_bezier needed to be updated.Brecht Van Lommel
2009-09-08Fix row/column order in matrix printout function.Benoit Bolsee
2009-09-08manual merge trunk -r 23037Dalai Felinto
strangely vector.c was skipped in last merge from trunk. ----------------------------------- Mathutils fix: Vector.reflect * correct function for reflection and moving it to arithb.c
2009-09-08Fix bug in Mathutil with matrix/matrix and matrix/vector multiplication order.Benoit Bolsee
MathUtil matrix type follows Blender convention of column major storage. This means that the elements on one column are contiguous in memory. Vectors are one dimensional arrays that can be considered in row or in column but the Blender convention is column so vector should only be considered as row. This means that the only logical multiplication operation between matrix and vector is matrix * vector. This convention is respected in all parts of MathUtil except in matrix/matrix and matrix/vector multiplication where the row major convention is assumed, which in the and is equivalent to reversing the order of multiplication. This is clearly a bug and must be corrected but the side effect is that it will break all scripts using these operations. Script writers who care about the correctness of the matrix operations have already implemented work around: 1) change order of matrix/vector multiplication. vec2 = vec1 * mat1 This must be changed to the normal order: vec2 = mat1 * vec1 2) change order of matrix/matrix multiplication (with matl a local transform in matw reference) mat3 = matl * matw This must be changed to the normal order: mat3 = matw * matl 3) transpose before an after the multiplication matl.transpose() matw.transpose() mat3 = matw * matl mat3.transpose() This must be changed to: mat3 = matw * matl;
2009-08-26- Mathutils.Vector assignment wasnt working in the BGE's py api, was using ↵Campbell Barton
getValue() rather than setValue() - added GPL header to bpy_interface.c from 2.4x's BPY_interface.c - warning fixes
2009-08-16- typos in boxpack comments (incorrectly had comment that it was from NAN)Campbell Barton
- removed unused defines STREQ, STREQ2, STREQ3 and MINSIZE
2009-08-152.5: warning fixesBrecht Van Lommel
Directories intern/ and source/blender/ now compile warning free again here with scons/gcc.
2009-08-14cmake changesCampbell Barton
- set python to 3.1 on linux (dont use FindPackage for now) - remove duplicate settings (disable cache for copied settings, was quite confusing) - added an option WITH_INSTALL, when disabled scripts and language files wont be copied to the target dir (better for quick builds) - remove .svn (was still CVS), and pyc/pyc files after copy - copy the 'io' as well as 'ui'
2009-08-102.5 audio cleanup:Joerg Mueller
* Removed CD Actuator * Removed bSample and bSoundListener * Removed SoundSystem * Removed -noaudio parameter
2009-08-10remove python2.x supportCampbell Barton
2009-07-31fix for warnings and implicit declarationsCampbell Barton
also fixed smoke comparing a float's mem-location rather then its value.
2009-07-20Added error prints if the text's main is not set.Campbell Barton