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-08-21BVH-raycast: Use watertight intersectionsCampbell Barton
By default watertight intersections are used, For callbacks where its not needed, BLI_bvhtree_ray_cast_ex can be called without the BVH_RAYCAST_WATERTIGHT flag. Fixes T45286
2015-08-21Math Lib: watertight intersection functionCampbell Barton
From Cycles with some very minor differences.
2015-08-21Math Lib: Add float/int conversion functionsCampbell Barton
2015-08-21BVH-raycast: ensure input direction is unit-lengthCampbell Barton
This was already the case for most users of ray-cast. Doing this avoids 2x normalize calls per ray-cast in many places.
2015-08-20Resolve MSVC/OpenMP compat issueCampbell Barton
2015-08-20Hopefully fix mingw building after filebrowser rewrite.Bastien Montagne
The mystery here is, how MSVC could not break on such error? :(
2015-08-20BVH-overlap: add callback to BLI_bvhtree_overlapCampbell Barton
The callback checks if 2 nodes intersect (not just their AABB). Advantages: - theres no need to allocate overlaps which are later ignored. - expensive intersection tests will run multi-threaded. Currently only used for Python API.
2015-08-20BVH-overlap: use stack for overlap data arrayCampbell Barton
This is known to be <32, so no need to malloc every item.
2015-08-20Cleanup: de-duplicate ray-cast initializationCampbell Barton
2015-08-20Cleanup: comment out isect_ray_tri_threshold_v3Campbell Barton
Also define epsilon var for ray-cast functions.
2015-08-20Cleanup: remove unused BVH_ONQUAD flagCampbell Barton
2015-08-19Final 'FileBrowser First Stage' merge.Bastien Montagne
It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser. From user perspective, it: * Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender! * Makes short/long display 'fixed' size (among four choices, like thumbnails mode). * Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories). * Consequently, adds datablocks types filtering. * Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared). * Generates thumbnails way faster. From code perspective, it: * Is ready for asset engine needs (on data structure level in filebrowser's listing). * Simplifies and makes 'generic' file listing much lighter. * Separates file listing in three different aspects: ** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct. ** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.). ** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one. * Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items. * Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs). * Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too). Revision: https://developer.blender.org/D1316 Thanks to Campbell & Sergey for the reviews. :)
2015-08-19Fix T45706: Axis aligned tri-tri intersectionCampbell Barton
2015-08-18UI: avoid subtracting shadow from winrctCampbell Barton
For popup interactions we need to know if events are in the region or not, however subtracting the shadow isn't so reliable, since its not always added to all sides of a popup. Instead, get the winrct value from a popup using the block rect, otherwise the winrct as-is.
2015-08-10BLI_threads: add an helper to wait on a condition using a global mutex.Bastien Montagne
Also, factorized internal code to get global mutex from its ID.
2015-08-04Docs: comment functions in BLI & Py APICampbell Barton
2015-08-02parenthisize macro args to avoid errorsCampbell Barton
2015-07-31Docs: doxy correctionsCampbell Barton
2015-07-29Math Lib: add isect_tri_tri_epsilon_v3 functionCampbell Barton
2015-07-25Cleanup: warnings, styleCampbell Barton
2015-07-24parenthisize macro args to avoid errorsCampbell Barton
2015-07-21Math Lib: use vector funcs for isect_line_line_v2_pointCampbell Barton
2015-07-21Remove nonnull attribute, NULL arg is valid here.Campbell Barton
2015-07-16Add tessellation data to DerivedMesh (LoopTri)Campbell Barton
This stores loop indices into the loop array giving easier acess to data such as vertex-colors and UV's, removing the need to store an MFace duplicate of custom-data. This doesn't yet move all internal code from MFace to LoopTri just yet. Only applies to: - opengl drawing - sculpting (pbvh) - vertex/weight paint Thanks to @psy-fi for review, fixes and improvements to drawing!
2015-07-15Fix own stupid error in yesterday's refactor of recursive dir creation.Bastien Montagne
Missed adding return value in one place. Thanks a lot to Thomas Szepe for reporting the issue and finding the solution! Question remains: how could MSVC allow such a code to compile in some cases (own win64 + scons buildbot win32 were OK with that it seems!). Crappy compiler, not comming to the rescue of stupid dev...
2015-07-14BLI_path_utils: fix/enhance BLI_filename_make_safe(), add BLI_path_make_safe().Bastien Montagne
BLI_filename_make_safe had several issues: * Would replace all dots ('.'), not a great idea since it would break extensions. * Was not checking for 'control' ASCII chars (though unlikely, better to be safe here). * Win32 only: was not checking for forbidden names (con, aux, ltp0, com0, etc.). New BLI_path_make_safe() simply checks each path's item with BLI_filename_make_safe().
2015-07-14BLI_fileops: Make BLI_dir_create_recursive() return success/error status.Bastien Montagne
Handy to know directly whether a file creation succeeded or not. Also, made a few more changes in this func, and harmonized a bit win32/*nix versions.
2015-07-14Match face tessellation order in edimodeCampbell Barton
add a negated version of axis_dominant_v3_to_m3
2015-07-14Fix for recent optimization commit in endian switchSergey Sharybin
Pre-4.8 GCC had a bug which lead to non-exposed __builtin_bswap16() symbol. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624 for details.
2015-07-14Cleanup: use ascii as suffix (as with utf8)Campbell Barton
2015-07-13Add BLI_math_statistics, where stats tool shall be!Bastien Montagne
For now, only contains some 3x3 matrix covariance computing.
2015-07-13Add BLI_math_solver, where non-linear solvers should be.Bastien Montagne
For now, only has an eigen solver for 3×3 (symmetric) matrix.
2015-07-12Remove redundant string copyCampbell Barton
2015-07-12Missed essential part in previous commit.Bastien Montagne
Or how to epic fail a fix when working on two different systems. Or how to increase your commit rate.
2015-07-12Fix T45375: Cant clear temp fluid cache after closing Blender (Windows).Bastien Montagne
There was two different issues here actually: * Own (very high) stupidity only gave 8 chars to file name (sic). * list dir returns dirpaths without a trailing slahs, but expects them to have it it seems. :|
2015-07-11Use const for direntry stringsCampbell Barton
2015-07-11Error in last commitCampbell Barton
2015-07-11Minor changes for more efficient endian switchingCampbell Barton
2015-07-11BLI_matrix space_transform: Add a 'local-invariant' setter.Bastien Montagne
`BLI_space_transform_from_matrices()` defines a 'global-invariant' transform (same point in global space, two different coordinates in local and target spaces). New `BLI_space_transform_global_from_matrices()` is kind of opposite, it defines a 'local-invariant' transform (two different points in global space, same coordinates in local and target spaces). Useful to 'match' meshes.
2015-07-10BLI_math 'compare' cleanup & enhancements.Bastien Montagne
This commit: * Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats. * Makes 'compare_vxvx' functions use that new 'compare_ff' one. * Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats. * Adds matching 'compare_vxvx_relative' functions. * Adds some basic tests for compare_ff_relative. See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative (using a very small absolute max_diff), but these do not have exact same behavior... Left a comment there for now, we can do it later if/when we are sure it won't break anything!
2015-07-09Cleanup: quiet warningCampbell Barton
2015-07-02BLI_GHash: add BLI_gset_str_new helpers.Bastien Montagne
2015-06-30Cleanup: move BLI_char_switch into BLI_stringCampbell Barton
2015-06-30Cleanup: use BLI_str prefix for BLI_replacestrNCampbell Barton
2015-06-30Cleanup: move BLI_timestr to BLI_timecodeCampbell Barton
2015-06-28Fix T45216: File Browser shows negative sizes for large files.Bastien Montagne
Simply backport small part of work from asset-experiments here (using double and adding tera-bytes unit), looks like off_t is not always 64bits even on a 64bit OS...
2015-06-27Cleanup: all params of BLI_str partition funcs can be const...Bastien Montagne
2015-06-27Extend `BLI_str_partition_ex`: add possibility to define a right limit to ↵Bastien Montagne
the string. Now you can define `end` pointer as right limit of the string (allows to easily search in substring, especially useful when searching from right).
2015-06-24Correct recent errorCampbell Barton
2015-06-24Improve dist_***_to_corner_v3v3v3 precisionCampbell Barton
Remove offset before calculating distance. Define 'plane3' to BLI_math, since we often don't need the 4th component.