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
2017-01-01Fix (unreported) fully broken 'sanitize utf-8' helper.Bastien Montagne
That code was a joke, letting some invalid utf8 bytes pass, returning wrong offset for some invalid sequences, not to mention length and pointer easily going out of sync, NULL final byte being 'forgotten' by memcpy, etc. etc. The miracle here is that we could survive using this for so long! Probably because we do not use utf-8 sanitizing enough in Blender, actually... :/
2016-12-28Comments: mul_project_m4_v3_zfacCampbell Barton
2016-12-27Comments: hints for perspective functionsCampbell Barton
Note which GL functions these are equivalent to.
2016-12-04Cleanup: simplify bitmap line drawingCampbell Barton
- Expand overly dense & confusing delta assignments. - Replace bit shift with multiply. Also link to 'clipped' version of this function which may be useful to add later.
2016-12-03Fix macOS build with openimageio 1.7.8 and openexr.Brecht Van Lommel
These macros conflict and are no longer needed with C99 or C++ anyway.
2016-11-29Math lib: Fix use function of wrong dimensionSergey Sharybin
Seems to be a typo in recent commit e1e49fd.
2016-11-25Math Lib: avoid temp array for rotate_m4Campbell Barton
No need to have temp array storage, avoid 2x loops.
2016-11-25Math Lib: rotate matrix cleanupCampbell Barton
- Remove 'rotate_m2', unlike 'rotate_m4' it created a new matrix duplicating 'angle_to_mat2' - now used instead. (better avoid matching functions having different behavior). - Add 'axis_angle_to_mat4_single', convenience wrapper for 'axis_angle_to_mat3_single'. - Replace 'unit_m4(), rotate_m4()' with a single call to 'axis_angle_to_mat4_single'.
2016-11-15Atomics: Make naming more obvious about which value is being returnedSergey Sharybin
2016-10-26BLI_bitmap_draw_2d: optimize polygon fillingCampbell Barton
Existing method was fine for basic polygons but didn't scale well because its was checking all coordinates for every y-pixel. Heres an optimized version. Basic logic remains the same this just maintains an ordered list of intersections, tracking in-out points, to avoid re-computing every row, this means sorting is only done once when out of order segments are found, the segments only need to be re-ordered if they cross each other. Speedup isn't linear, test with full-screen complex lasso gave 11x speedup.
2016-10-26Cleanup: rename functions in BLI_bitmap_draw_2dCampbell Barton
2016-10-26Cleanup: move bitmap drawing into its own moduleCampbell Barton
Bitmap drawing is out-of-scope for a general math API, move to BLI_bitmap_draw_2d.
2016-10-25API: Fix LinksAaron Carlisle
Self-explanatory. to find broken links run `sphinx-build -b linkcheck sphinx-in sphinx-out` Reviewers: mont29 Tags: #bf_blender, #python, #infrastructure:_websites Differential Revision: https://developer.blender.org/D2297
2016-10-08BLI_task: fix case were some pool could work in more threads than allowed.Bastien Montagne
We were checking for number of tasks from given pool already active, and then atomically increasing it if allowed - this is not correct, number could be increased by another thread between check and atomic op! Atomic primitives are nice, but you must be very careful with *how* you use them... Now we atomically increase counter, check result, and if we end up over max value, abort and decrease counter again. Spotted by Sergey, thanks!
2016-09-28Fix T49478: triangulate of face hangs Blender.Bastien Montagne
Another case of float imprecision leading to endless loop. INcreasing a bit 'noise threashold' seems to work OK. Not a regression, but might be nice to have in 2.78a.
2016-09-19Lowercase includes for psapi.h and dbghelp.h windows includes.Martijn Berger
This makes cross compilation a little less painful
2016-09-19Remove null-check of argument which is attributed as non-nullSergey Sharybin
This was logically incorrect and was causing warning and compilation errors with strict compiler flags.
2016-09-18Minor corrections for previous commitJulian Eisel
Was using wrong argument name in doxygen comment. Also reduced scope of vars. Sorry for the noise :/
2016-09-18BLI_listbase: Add/use utility to move link (BLI_listbase_link_move)Julian Eisel
We were calling BLI_remlink and then BLI_insertlinkbefore/after quite often. BLI_listbase_link_move simplifies code a bit and makes it easier to follow. It also returns if link position has changed which can be used to avoid unnecessary updates. Added it to a number of list reorder operators for now and made use of return value. Behavior shouldn't be changed. Also some minor cleanup.
2016-09-05Fix T49251: moving smoke domain with additional resolution causes crash.Alexander Gavrilov
This is a bug in the multithreaded task manager in negative value range. The problem here is that if previter is unsigned, the comparison in the return statement is unsigned, and works incorrectly if stop < 0 && iter >= 0. This in turn can happen if stop is close to 0, because this code is designed to overrun the stop by chunk_size*num_threads as the threads terminate. This probably should go into 2.78 as it prevents a crash.
2016-09-01Math Lib: avoid char > int conversion w/ line plotCampbell Barton
2016-08-16Cleanup unused return value (was making coverity sad).Bastien Montagne
2016-08-16Fix release build after recent fix for debug oneSergey Sharybin
It's becoming annoying to have public API dependent on build type and everything. Let's just always have API defined and do stubs in the function implementation instead.
2016-08-16Fix redundant declarations after recent changes in GPU debugSergey Sharybin
2016-08-15Fix OpenGL backtrace build errors, without disabling warnings.Brecht Van Lommel
2016-08-01Fix strict compiler flags with older GCCSergey Sharybin
2016-07-31Cleanup: spelling, styleCampbell Barton
2016-07-20Fix own error in recent heap updateCampbell Barton
2016-07-19Cleanup: style, spellingCampbell Barton
2016-07-17BLI_heap: replace memarena w/ local allocatorCampbell Barton
- Since element size its known it's less work to do inline. - In test with high-poly model, gave ~9% overall speedup for decimate modifier.
2016-07-17Cleanup: minor edits to BLI_heapCampbell Barton
2016-07-15Bump maximum threads number to 1024Sergey Sharybin
This commit contains all the changes required for most optimal maximum threads number bump. This is needed to avoid possibly unneeded initialization or data allocation on systems with lower threads count. TODO: Still need to review arrays in render data structures from render_types.h, P.S. We might remove actual bump of max threads from this patch, so when we'll be applying the patch we can do all the preparation work and then do actual bump of max threads. Reviewers: mont29, campbellbarton Reviewed By: mont29, campbellbarton Maniphest Tasks: T43306 Differential Revision: https://developer.blender.org/D1343
2016-07-11BLI_math: move interp_*_cubic to its own functionCampbell Barton
2016-07-08Cleanup: use normalize_v#_lengthCampbell Barton
2016-07-08BLI_math: add normalize functions which fit to a lengthCampbell Barton
Convenient since its common to normalize then scale, since these are inlined, use for regular normalize w/ 1.0 length.
2016-07-07Fix T48793: Bilinear filter clamps at edge pixelsCampbell Barton
2016-07-04Fix a few compiler warnings on OS X / clang.Brecht Van Lommel
Two were actual bugs, though they existed only in unused code: * In Freestyle it was unintentionally copying a scene rather than referencing it. * In BLI_array_store_is_valid there was use of uninitialized memory.
2016-07-02Cleanup: comment blocksCampbell Barton
2016-06-30Transform Snap: Optimize edge-snap using BVH treeGermano Cavalcante
changes in BLI_kdopbvh: - `BLI_bvhtree_find_nearest_to_ray` now takes is_ray_normalized and scale argument. - `BLI_bvhtree_find_nearest_to_ray_angle` has been added (use for perspective view). changes in BLI_bvhutils: - `bvhtree_from_editmesh_edges_ex` was added. changes in math_geom: - `dist_squared_ray_to_seg_v3` was added. other changes: - `do_ray_start_correction` is no longer necessary to snap to verts. - the way in which the test of depth was done before is being simulated in callbacks.
2016-06-29Cleanup: spelling, indentationCampbell Barton
2016-06-27Bendy Bones Instability Fix - Second AttemptJoshua Leung
So the error seems to be in cubic_tangent_factor_circle_v3(), which was introduced with D2001. I've tweaked the most obvious culprit here - the epsilon factor. It used to be 10^-7, but I've reduced it down to 10^-5 now, and it's looking a lot more stable now :) --------- BTW, about the derivation of the magic 0.390464 factor I briefly subbed back as a workaround for this bug, see: http://www.whizkidtech.redprince.net/bezier/circle/
2016-06-27Docs: arg namesCampbell Barton
2016-06-23Fix minor typo - Was m[3][4] instead of m[4][4] for a 4x4 matrixJoshua Leung
2016-06-23BLI_array_utils: add BLI_array_rfindindexCampbell Barton
Array search from back to front.
2016-06-22Cleanup: styleCampbell Barton
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-16BMesh Decimate: use doubles to calculate optimized positionCampbell Barton
This allows the error threshold for calculating the optimized location to be much lower. Resolves visible artifacts w/ 1m-tri happy-buddha example.
2016-06-16BLI_math: Add double versions of functionsCampbell Barton
- mul_v3_m3v3_db - mul_m3_v3_db - negate_v3_db
2016-06-12BLI_math: cleanup arg namesCampbell Barton
project functions arg naming made it hard to tell which vector was projected onto.
2016-06-11BLI_rand: add BLI_rng_get_char_nCampbell Barton
Use to fill an array of bytes to random values.