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
2015-02-08minor Windows include tweakMike Erwin
Needed a minor change to test committing from a new development system.
2015-02-08BoxPack: avoid using static vars (make threadsafe)Campbell Barton
2015-02-06cleanup: styleCampbell Barton
2015-02-06Fix T43578: Beauty Triangulation would hang in infinite loop, due to float ↵Bastien Montagne
rpecision issue. Only recompute if cost is below -FLT_EPSILON, we can get cases where both cases generate very tiny negative costs (see 'Cylinder.004' mesh in .blend attached to report).
2015-02-05BLI_math vectors: add minmax_v3v3_v3_array to get min and max values on each ↵Bastien Montagne
components of an array of 3D vectors.
2015-02-03Revert "Keep mingw specific includes ifdef'd"Campbell Barton
This reverts commit ba8b9ae307010ee5e8e43c6afc4c9d0571c2bf73. Turns out this is needed on other systems, just happened to be indirect included on them.
2015-02-03Keep mingw specific includes ifdef'dCampbell Barton
2015-02-03MinGW64 complains about clock, include time.hAntony Riakiotakis
2015-02-01mathutils: added exponential map to QuaternionSybren A. Stüvel
Added conversion to and from exponential map representation. This representation is useful for interpolation of > 2 quaternions, or in PD controllers. Implementation in C functions quat_to_expmap, quat_normalized_to_expmap, and expmap_to_quat with Python API, unit tests and documentation. Added Quaternion.to_exponential_map() and Quaternion(3-vector) to Python API. Reviewers: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D1049
2015-01-31Add PIL_check_seconds_timer_i to avoid castingCampbell Barton
note, win32 casts still casts from double.
2015-01-31Comment for math defines, also add M_PI_4Campbell Barton
2015-01-29Gooseberry request: Dithering support for byte images when painting onAntony Riakiotakis
projection painting (2D will be separate commit).
2015-01-26Cleanup: current/parent paths: add helpers in BLI_path_utils.Bastien Montagne
Also, avoid calling ugly strcmp with '.' or '..', making direct char checks is much cheaper here!
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-20New hair editing feature "Shape Cut", for cutting hair based on a meshLukas Tönne
shape instead of a brush tool. The brush cutting tool for hair, while useful, is not very accurate and often requires rotating the model constantly to get the right trimming on every side. This makes adjustments to a hair shape a very tedious process. On the other hand, making proxy meshes for hair shapes is a common workflow. The new operator allows using such rough meshes as boundaries for hair. All hairs that are outside the shape mesh are removed, while those cutting it at some length are shortened accordingly. The operator can be accessed in the particle edit mode toolbar via the "Shape Cut" button. The "Shape Object" must be set first and stays selected as a tool setting for repeatedly applying the shape.
2015-01-16Fix compilation error with strict compiler rulesSergey Sharybin
2015-01-16Fix T43275: Crash on Render when using 'save buffer' and render layer name ↵Bastien Montagne
contains a '/' Added a new BLI_path_utils func, `BLI_filename_make_safe()`, which for now simply replaces unsafe chars for paths (like '\' or '/') by an underscore...
2015-01-13Cleanup: fixes for building with recent clangCampbell Barton
2015-01-13Math Lib: improve area calculationCampbell Barton
- area_quad_v3 now works correctly with concave quads. - add area_squared_*** functions, to use when comparing to avoid a sqrt().
2015-01-12BLI linkstack macros: do not prepend the 'anti-namespace-collision' to var name.Bastien Montagne
Issue was, in case of using such stack within a structure, the '_' underscore would be added in front of struct variable (e.g. `my_struct.my_stack` would lead to (try to) using `_my_struct.my_var_pool` ...). Now underscore is appended to var names, ugly but working. Note did not touch to the alloca variants of those macros, since in this case enforcing a pure local use is best I think.
2015-01-10Fix building with very strict flags, use size_t rather than int for string ↵Bastien Montagne
length. Reported on bf-committers.
2015-01-10cleanup: style & warningsCampbell Barton
2015-01-09BLI_string: BLI_str_ends_with -> BLI_str_endswithCampbell Barton
Loosely following Python str convention.
2015-01-09BLI_math: add vector's dot_v3v3v3() func, for when you have three points ↵Bastien Montagne
instead of two vectors.
2015-01-09BLI_rand: add a function returning a random point whithin given 2D triangle.Bastien Montagne
Needed by transfer data.
2015-01-09BLI: add 'A*' (AStar) shortest path solver algorithm.Bastien Montagne
Needed for transfer data.
2015-01-09Gooseberry animation request: Paste flipped pose in actionAntony Riakiotakis
and graph editor. This was a tricky commit that was not so straightforward to make work. The information for bones is not easy to come by in the animation curves, however we do have some string manipulation tricks to make it happen. Testing in gooseberry worked for the rigs there, commiting to master now
2015-01-06cleanup: warningsCampbell Barton
2015-01-06PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RETCampbell Barton
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator.
2015-01-04Partial fix for T43113: Filebrowser: Empty folders do not contain go back arrow.Bastien Montagne
Do not allow going into un-readable directories at all. Note we might want to reflect that 'state' in UI for users too, but that will be for later. Also, not quite sure this fix the windows case, will have to start my VM... :/
2015-01-03Cleanup: rename 'filelist' BLI funcs to consistent naming.Bastien Montagne
Also, add an optional callback to `BLI_filelist_free()` to allow freein void poin if needed (consistency with `BLI_filelist_duplicate()`...).
2015-01-03Refactor 'fit in camera view' code, and expose it to RNA.Bastien Montagne
This changes BKE's fitting code to use `BKE_camera_params_compute_viewplane` instead of `BKE_camera_view_frame`. This allows that code to work with orthographic projection too. Also, two funcs were added to rna's Object, to resp. get the projection matrix of that object (mostly useful for cameras and lamps objects), and return position this object should be to see all (to fit) a given set of points. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D961
2015-01-03Add some BLI helpers needed by asset branch.Bastien Montagne
`BLI_strncpy_ensure_pad()` is also useful with current master code. The two others (`BLI_strcmp_ignore_pad()` and `BLI_filelist_duplicate()`) are only used in asset branch currently, but think they could be useful in other places too, and simplifies handling of asset branch & future patch review. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D965
2015-01-02cleanup: styleCampbell Barton
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-28Fix buffer overrun calculating unique namesCampbell Barton
2014-12-28BLI_string_utf8: add BLI_strncpy_utf8_rlenCampbell Barton
2014-12-27Fix T43034: beautify-fill leaves zero area tri'sCampbell Barton
2014-12-26optimize interp_weights_poly_v2, v3Campbell Barton
use line_point_factor instead of length between vertices.
2014-12-26optimize interp_weights_poly_v2, v3Campbell Barton
halve sqrtf calls per per polygon corner.
2014-12-26cleanup: use cross_tri_v2 when area isn't needed.Campbell Barton
2014-12-22Fix T42966: Py_Initialize: Unable to get the locale encodingSergey Sharybin
This only happened for SCons builds and caused by pure human stupidnes.
2014-12-18cleanup: use const for smallhash & minor editsCampbell Barton
2014-12-17Fix triangulating concave quadsCampbell Barton
Resulting triangles could be pointing in opposing directions.
2014-12-17Docs: comments (hash table & beauty fill)Campbell Barton
2014-12-10Fixes for compilation with msvcSergey Sharybin
MSVC doesn't like caling macro argument f when using float values in the macro, it simply replaces the f in the float value with the argument.. CMake compilation still fails because of 77785ce70807, numpy is never getting unpacked.
2014-12-09Smallhash: add support for iterating value pointersCampbell Barton
also add reinsert function
2014-12-09Fix T42488: Knife (selected_only + occlude) failedCampbell Barton
2014-12-09Fix T42630: Triangulate returns invalid face-mapCampbell Barton
Triangulate with beautify caused a bug when there were existing edges could make the bmesh-operator return an invalid face-map. Now the beauty is calculated on the 2d-tri's resulting from polyfill, its simpler and faster.
2014-12-09Cleanup: remove scanfill define for polyfill codeCampbell Barton
also rename vars which were previously used for scanfill.