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
2011-02-14python api renaming and added headers for some files which didnt have one, ↵Campbell Barton
no functionality change.
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2011-02-09use static functions rather then defines for internal ↵Campbell Barton
matrix__apply_to_copy() and similar. + other minor internal changes.
2011-02-05mathutils rotate functions for Euler/Quaternion/Matrix/Vector types.Campbell Barton
each accept Euler/Quaternion/Matrix types. eg: Euler.rotate(Quaternion(axis, angle)) Vector.rotate(Euler((pi/2, 0, 0))) matrix.resize_4x4() and euler.make_compatible() were still returning an instance of themselves, now return None.
2011-02-05Rename python mathutils functions and split in-place methods from those that ↵Campbell Barton
return new values. http://wiki.blender.org/index.php/Dev:2.5/Source/Python/Mathutils This completes the changes proposed. This will break scripts (fixing coming up next), for full list of changes see mathutils.c comments.
2011-02-04small mathutils changes.Campbell Barton
- fix for returning empty slices (was returning list rather then tuple). - report invalid type when mathutils_array_parse_fast() fails.
2011-02-04PyAPI: coerce mathutils values. (vectors, quats, eulers) as proposed here:Campbell Barton
http://wiki.blender.org/index.php/Dev:2.5/Source/Python/Mathutils#Coerce_Method_Arguments
2011-01-23bugfix + minor mathutils.Vector edits.Campbell Barton
- multiplying a 2D vector by a 3x3 or 4x4 matrix would use un-initialized memory, now throw an exception. - use more variable length array BLI_math functions.
2011-01-19support building with python3.2Campbell Barton
2011-01-14misc python api improvementsCampbell Barton
- rna array parsing was using PySequence_Size() in a loop, this can be slow to run so only call once. - assigning a single value to a multi-dimensional array was missing type check. - improve exception messages for rna array type errors. - simplify vector slice assignment by using mathutils_array_parse(...)
2011-01-09rename BKE_assert() --> BLI_assert().Campbell Barton
2011-01-09use PySequence_Size() rather then PySequence_Length(), this is only kept in ↵Campbell Barton
python for backwards compatibility.
2011-01-09cleanup for mathutils multiplication functions, a little faster in some ↵Campbell Barton
cases, raise more informative exceptions.
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2010-12-24return typle for mathutils slice's.Campbell Barton
The main advantage with this is that its close to twice as fast to do 'vertex.co[:]' then 'tuple(vertex.co)', this is common for writing a vertex array. the correct python behavior in this case is to return a copy of the original type, however euler and quats don't support different sizes so we cant do so easily.
2010-12-03Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for ↵Campbell Barton
'const char's,. Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03fix for some pedantic warnings.Campbell Barton
2010-12-03correction to error message from Dan EicherCampbell Barton
2010-11-28minor changes to the python api.Campbell Barton
- pep8 script was giving an error on non utf8 scons source files. - use PyList_SET_ITEM macro when list type is ensured. - all mathutils types use subtypes to create new types when available. - use defines MAT3_UNITY, MAT4_UNITY to initialize unit matrices.
2010-11-25new vectors that were the result of functions or operators were not using ↵Campbell Barton
the same subclass as the vectors they were derived from.
2010-11-23minor edits to exception formatting (remove ... or \n from suffix)Campbell Barton
2010-11-23fix for typo in mathutils vec.to_track_quat() argument parsing.Campbell Barton
2010-11-22- blend_m3_m3m3 and blend_m4_m4m4 now support matrices with negative scales.Campbell Barton
- python/mathutils api matrix.lerp(other, factor) - new function mat3_to_rot_size(), like mat4_to_loc_rot_size but with no location.
2010-11-14fix for own recent error, [#24695] column_vector_multiplication call writes ↵Campbell Barton
past end of array was setting the vector array out of bounds with vec*=matrix, where the vector wasnt size 4.
2010-11-12fix for vec * matrix always returning a 3D vector.Campbell Barton
2010-11-12bugfix [#24660] (vector * matrix) fails, (matrix * vector) succeedsCampbell Barton
- Reverse vector * matrix multiplication order. now this matches how numpy works. - Disallow 'matrix * vec' and 'quat * vec', now it raises an error. - Add missing in-place multiply 'vec *= quat' Many scripts will need to be updated for this but at least it will error rather then failing silently.
2010-10-20fix for -Wunused-valueCampbell Barton
2010-10-14UNUSED() macro so -Wunused-parameter can be used with GCC without so many ↵Campbell Barton
warnings. applied to python api and exotic.c, removed some args being passed down which were not needed. keyword args for new mathutils types were being ignored when they should raise an error.
2010-09-29patch from Dan Eicher with some edirts.Campbell Barton
vec.rotate(axis, angle) equivalent to... vec[:] = vec * mathutils.Quaternion(axis, angle)
2010-08-24make quicky wrapper for cmake.Campbell Barton
works like scons where using a subset of the targets name is enough. make_quicky.py py ...expands into make bf_python bf_python_ext blender/fast arguments like -j4 are passed on.
2010-08-24bugfix [#23454] vector*matrix not the same as vector*=matrixCampbell Barton
- they now share the same code so it wont happen again. - added id_data to properties so we can do... matrix = C.object.matrix_world obj = matrix.owner.id_data # get the original object back.
2010-08-16Py API (GSoC): Second merging commitJoerg Mueller
Rough summary of fixes/changes: - Blender Py API: GameLogic -> bge.logic - Blender Py API: Implemented missing KX_PYATTRIBUTE_TODOs and -DUMMYs. - Fix for [#22924] KX_PolygonMaterial.diffuse does not return expected list[r,g,b] - Py API: Renaming _owner attribute of mathutils classes to owner. - Fix some minor errors in mathutils and blf. - Enabling game engine autoplay again based on a patch by Dalai: * The biggest 3D view in the open scene is used, if there is none, blender opens the file normally and raises an error. * The 3D view are is made fullscreen. * Quad view, header, properties and toolbox panel are all hidden to get the maximum view. * If the game engine full screen setting is set, the game starts in fullscreen. - Fix for ipo conversion on file transition in the game engine.
2010-08-08== docs ==Luca Bonavita
Changing " **type** " into "\n\n:type: " in Mathutils, to have like "type: float" in its own line.
2010-08-02python mathutils changeCampbell Barton
quat * quat was returning the dot product (a float), rather then the cross product. Use BLI_math's mul_qt_qtqt() function.
2010-07-17spelling correction: alredy --> alreadyCampbell Barton
2010-05-30optional fallback argument for vector angle function.Campbell Barton
vec1.angle(vec2, fallback) in my experiences most uses of this function required a try/except so better to allow a fallback value.
2010-05-17blf docstring fix from MoguriCampbell Barton
2010-05-16no functional changesCampbell Barton
- add PySequenceMethods members (all NULL) - spaces -> tabs - cmake syntax warning from recent ghost commit
2010-04-25py apiCampbell Barton
- mathutils.Color.hsv attribute. eg. material.diffuse_color.hsv = 0.2, 0.8, 0.4 - Vector/Euler/Quaternion/Color now only take a single seq arg. - internal function for parsing arrays. (cleanup messy internal list/vector/tuple/seq parsing) - didnt update rigify yet.
2010-04-25minor mathutils updateCampbell Barton
- docstring for Euler.rotate - rotate_eul, use upper case in Py and C. - use less verbose repr method.
2010-04-20change mathutils 'repr' functions to closer match inputCampbell Barton
2010-04-11PyAPICampbell Barton
- added new mathutils.Color() type, use with rna so we can do for eg: material.diffuse_color.r = 1.0 # also has hsv access material.diffuse_color.s = 0.6 - made Mathutils and Geometry module names lowercase.
2010-04-11py api file renameCampbell Barton
- prefix mathutils api. - 2 blf.c files (annoying for debugging) - py api docs ignore keying sets as with operators.