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-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.
2011-01-07incorrectly documented return typeCampbell Barton
2011-01-07py/rna api speedup for collection slicing in all cases, rather then having ↵Campbell Barton
an exception for [:]. - avoid looping over the entire collection unless a negative index is used. - dont use the get index function for building the slice list, instead loop over the collection until the stop value.
2011-01-06py/rna optimizations, will help for faster exporting.Campbell Barton
Speedup for getting collection indices, avoid getting the collection length unless a negative index is given. This avoids a loop over the entire collection in many cases. Speedup for getting collection slices by detecting collection[:] and internally calling collection.values(), this gives a big speedup with some collections because each slice item would loop over the list until that index was found. Rough test with 336 objects. - getting index of listbase collection ~ 5.0x faster - getting index of array collection ~ 1.15x faster - getting slices of listbase collections ~ 34.0x faster - getting slices of array collections ~ 1.5x faster
2011-01-05fix for py/rna mesh.materials[:] where empty materials exist, would raise a ↵Campbell Barton
runtime exception. problem was there was no way to tell the difference between getting an empty item from a collection or the item not being found.
2011-01-05edits for BPY_extern.h functions, no functional changesCampbell Barton
- remove unused code. - BPY_run_python_script() split in 2, BPY_filepath_exec, BPY_text_exec - renamed funcs.
2011-01-03fix for crash when some classes didnt register properly (this included ↵Campbell Barton
loading sintel.blend).
2011-01-03fix for own error with mathutils.geometry argument parsing.Campbell Barton
also raise ValueError when the vector size is incorrect rather then type error.
2011-01-02- correct typos in comments.Campbell Barton
- move boxpack struct out of the public header.
2011-01-02python api: rna array slices now return tuples rather then lists (fits with ↵Campbell Barton
recent change made to mathutils). minor improvements/cleanup to exporters.
2011-01-02geometry moduleCampbell Barton
- rename functions from camel case. - added docs for undocumented methods. - minor functional changes with exceptions and accepting 3d/4d vectors where it makes no difference. Renamed: - geometry.Intersect -> intersect_ray_tri - geometry.ClosestPointOnLine -> intersect_point_line - geometry.PointInTriangle2D -> intersect_point_tri_2d - geometry.PointInQuad2D -> intersect_point_quad_2d - geometry.LineIntersect -> intersect_line_line - geometry.LineIntersect2D -> intersect_line_line_2d - geometry.BezierInterp -> interpolate_bezier - geometry.TriangleArea -> area_tri - geometry.QuadNormal, TriangleNormal -> normal - geometry.PolyFill -> tesselate_polygon - geometry.BoxPack2D -> box_pack_2d - geometry.BarycentricTransform -> barycentric_transform
2010-12-31update python api with changes from Joshua's commit r33917. translate ↵Campbell Barton
reports into python errors.
2010-12-31CMake: use blender_include_dirs("${OPENGL_INCLUDE_DIR}") rather then ↵Campbell Barton
blender_include_dirs(${OPENGL_INCLUDE_DIR}) Apparently this is needed for MSVC in some cases, reported by Tamito Kajiyama r33895.
2010-12-28Drivers Code Cleanups and UI Tweaks:Joshua Leung
- Adding drivers from the UI (not from py-scripts though) will now automatically add a "Transform Channel" driver variable to the newly created drivers. This makes setting up drivers a bit more convenient for the most commonly used case. - Drivers now report their errors using the Reports system instead of writing these directly to the console. - Clarified some comments to be more insightful about the "why's" of some design decisions, and related formatting/cleanup tweaks - Reduced scope of "path" vars to just the scope they're required in - Removed some unused defines from a failed experiment in the original Keying Sets code ("templates" and "template flags") which was superseeded by the more flexible + nicer "Builtin KeyingSets"
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-23fix for PyC_LineSpit() finding the current line of the frame's code object.Campbell Barton
2010-12-23rename blenderlib to blender_add_libCampbell Barton
2010-12-23remove reload() from builtins since python3 no longer uses this.Campbell Barton
use imp.reload now. Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.
2010-12-18fix [#25262] Keyboard shortcut presets can't be made because of wrong folderCampbell Barton
New create option when getting a user resource for creating paths. bpy.utils.user_resource(type, path, create=False)
2010-12-15BKE_assert(), only prints the error unless cmake define WITH_ASSERT_ABORT is ↵Campbell Barton
enabled and it will call abort(). made this option advanced so people don't enable along with other features.
2010-12-15access bpy.app.debug_value, G.rt internallyCampbell Barton
2010-12-13Expose access to PROP_ENUM_FLAG from bpy.props.EnumProperty(), this is ↵Campbell Barton
exposed as a python set(). The default value is also a python set() so multiple booleans can be used in the 1 property. Also added PROP_ENUM_FLAG support to operator printouts.
2010-12-13exceptions in registering properties were not properly handled, allowing a ↵Campbell Barton
single error stop the main module registration loop. worst case 1 script error could load blender without a UI.
2010-12-12New math util funcitons:Sergey Sharybin
- equals_v2v2 - project_v2_v2v2 - isect_seg_seg_v2_point which would be necessery for my further multires interpolation commit M_Geometry_LineIntersect2D now uses isect_seg_seg_v2_point(). Behaviour of this function was changed a bit -- it haven't returned intersection point in several cases when two segments are making angle.
2010-12-10patch [#25027] formatting mathutils.geometry module docs for sphinxCampbell Barton
from Luka Bonavita See: http://www.blender.org/documentation/250PythonDoc/mathutils.geometry.html
2010-12-10Change the BLF_aspect function to handle 3d text.Diego Borghetti
This is need to properly handle 3d text (dalai work on GE), before the BLF_aspect only take one argument, and the result was a call to: glScalef(aspect, aspect, 1.0) Now the three value are store in the font (x, y and z) and also need to be enable using BLF_enable(BLF_ASPECT). By default all the code that don't have BLF_ASPECT enable work with a scale of 1.0 (so nothing change to the current UI). I also remove all the call of BLF_aspect(fontid, 1.0) found in the editors, because is disable by default, so no need any more. Campbell the only thing to check is the python api, right now I modify the api to from: BLF_aspect(fontid, aspect) to: BLF_aspect(fontid, aspect, aspect, 1.0) This is to avoid break the api, but now you need add the BLF_ASPECT option to the function py_blf_enable and in some point change py_blf_aspect to take 3 arguments.
2010-12-09renaming blf_api.h to blf_py_api.hDalai Felinto
In windows this was producing Linking dependence errors because we have BLF_api.h in the /blenfont/ and blf_api.h in /python/generic/. It doesn't produces crash out of the box but I was trying to link both "api" files to the same project (Ketjsi folder). For the linking order was determining what header to use. A workaround is to "include" the file using some ../../ relative folder. But renaming it is less error prone. Probably Ketsji folder shouldn't link to BLF_api.h anyways, but this is something I will look better later before another commit. In the mean time it's not a good idea to have 2 api files with the same name (for non case-sensitive systems).
2010-12-09- internal py/rna ifdef's USE_MATHUTILS was mixed up,Campbell Barton
- updated tooltip for vertex group mirror.
2010-12-08use lowercase for cmake builtin names and macros, remove contents in else() ↵Campbell Barton
and endif() which is no longer needed.
2010-12-08fix for own change r33524, at the moment the context always has to be valid, ↵Campbell Barton
noted with XXX. reported by Doug Hammond.
2010-12-07minor internal python api change - pass the context rather then getting from ↵Campbell Barton
BPy_GetContext() again.
2010-12-07pass along the context to extension functions, this was already being done ↵Campbell Barton
in all cases except for the render engine. this allows python to NULL its internal context while scripts are not running.
2010-12-07mathutils quaternion axis/angle access was broken for non unit lenth quats, ↵Campbell Barton
would return NAN's in simple cases. now normalize upon conversion, when setting the quat axis/ange, maintain length by scaling back to the original size afterwards.
2010-12-06include getset's for generating module docs.Campbell Barton
used for bpy.debug/tempdir/driver_namespace which were previously undocumented.
2010-12-06- converted path cleaning on file load to use bPath Iterator functions - ↵Campbell Barton
image & font and sequence paths were being cleaned but not multires, voxel & sound paths. - skip fixing file paths on undo. - simplify bpath alloc and free functions, also pass Main structure so as not to rely on G.main, (needed for file load).
2010-12-06use BLI_strnlen rather then strlen when comparing against fixed lengths.Campbell Barton
2010-12-06bpath iterator updatesCampbell Barton
- loop over sequencer plugin and texture voxel paths. - fix leak in python bpy.utils.blend_path() and use PyUnicode_DecodeFSDefault() to ensure correct paths with different encodings. - operators to make paths absolute & relative now redraw the view.
2010-12-05use PyUnicode_DecodeFSDefault rather then PyUnicode_DecodeUTF8(str, ↵Campbell Barton
strlen(str), "surrogateescape"), for converting non utf8 names. this is needed because some UTF8 names didnt resolve on windows when using surrogateescape'd strings. This meant you couldn't export to models some directories on windows.
2010-12-04Maintenance, Campbell Barton
- remove some redundant declarations - changed VertexTangent and Path structs to avoid compiler alignment padding.
2010-12-04disallow setting RNA attributes while drawing, this is bad practice so ↵Campbell Barton
enforcing here has the benifit of making sure people are not manipulating blender scene data in a drawing panel for eg. This is ifdef'd and may be disabled later on, or only enabled in debug mode. This applies to setting any RNA value that has an ID and is not a screen or window-manager datablock. Some addons break this rule and need fixing but from my tests blender UI scripts are ok.
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-03- added GCC warning -Wstrict-prototypesCampbell Barton
- fixed bug in paste material, exposed by stricter warnings. - removed/renamed various shadowed vars. - removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03fix for some pedantic warnings.Campbell Barton
2010-12-03correction to error message from Dan EicherCampbell Barton
2010-11-29fix for error when changing DISBALE_PYTHON -> WITH_PYTHON,Campbell Barton
This define wasn't set in some parts of the BGE causing problems with the view matrix. in CMake define for the entire BGE fixes this.
2010-11-29include headers in cmake source, added a script to check for consistency, ↵Campbell Barton
reporting missing headers & C files. this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
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-27python access to driver namespace, rather then have a textblock defined for ↵Campbell Barton
drivers allow scripts to add functions directly. - bpy.app.driver_namespace, read-only dictionary, edit in-place. - reset on file load and new file. - on errors the namespace used to be reset, this should not be needed. simple example. def driverFunc(val): return val * val bpy.app.driver_namespace['driverFunc'] = driverFunc ... now all drivers can access this function.
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.